]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ppp: enable TX scatter-gather
authorQingfang Deng <dqfext@gmail.com>
Thu, 29 Jan 2026 01:29:02 +0000 (09:29 +0800)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 5 Feb 2026 09:06:27 +0000 (10:06 +0100)
commit42fcb213e58a7da33d5d2d7517b4e521025c68c3
treee085dceb59383429d23f770d65f917f80aa8afef
parent3e5aa52b45c73470092f00d219e947f32cce340c
ppp: enable TX scatter-gather

PPP channels using chan->direct_xmit prepend the PPP header to a skb and
call dev_queue_xmit() directly. In this mode the skb does not need to be
linear, but the PPP netdevice currently does not advertise
scatter-gather features, causing unnecessary linearization and
preventing GSO.

Enable NETIF_F_SG and NETIF_F_FRAGLIST on PPP devices. In case a linear
buffer is required (PPP compression, multilink, and channels without
direct_xmit), call skb_linearize() explicitly.

Signed-off-by: Qingfang Deng <dqfext@gmail.com>
Link: https://patch.msgid.link/20260129012902.941-1-dqfext@gmail.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/ppp/ppp_generic.c