Thread (10 messages) 10 messages, 3 authors, 3d ago

Re: [PATCH net] ppp: linearize bridged packets when required

flat view

From: Qingfang Deng <hidden>
Date: 2026-10-21 17:03:58
Also in: lkml

On 10/22/2026 12:31 AM, Eric Dumazet wrote:
Le mer. 21 oct. 2026 à 12:27, Qingfang Deng [off-list ref] a écrit :
quoted
quoted
+       case PPP_IP:
+               skb->protocol = htons(ETH_P_IP);
+               break;
+       case PPP_IPV6:
+               skb->protocol = htons(ETH_P_IPV6);
+               break;
+       default:
+               goto drop;
+       }
+       skb_set_network_header(skb, PPP_PROTO_LEN);
+
+       segs = skb_gso_segment(skb, 0);
Passing zero features to skb_gso_segment will linearize every segment
prematurely.
Good point, PPTP and L2TP do not need linear packets.
I will pass NETIF_F_SG: checksums are still computed in software by
skb_segment(), as openvswitch does, and ppp_bridge_xmit() linearizes
segments only for channels without direct_xmit.
What about NETIF_F_FRAGLIST?
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help