Thread (35 messages) 35 messages, 8 authors, 2017-12-20

RE: [PATCH v3 net-next 3/6] net: Add SW fallback infrastructure for offloaded sockets

flat view

From: Ilya Lesokhin <hidden>
Date: 2017-12-19 19:15:46

quoted
diff --git a/net/core/dev.c b/net/core/dev.c
index b0eee49a2489..6a78d9046674 100644
--- a/net/core/dev.c
+++ b/net/core/dev.c
@@ -3051,6 +3051,10 @@ static struct sk_buff *validate_xmit_skb(struct
sk_buff *skb, struct net_device
quoted
 	if (unlikely(!skb))
 		goto out_null;

+	skb = skb_offload_check(skb, dev);
+	if (!skb)
+		goto out_null;
+
 	if (netif_needs_gso(skb, features)) {
 		struct sk_buff *segs;
How is it going to work with stacked devices (bonding, team, tunnels) ?
Currently we don't support TLS offload on stacked devices.
Note however that in that case the TLS layer will refuse to use device offload
And we will not go through this software offload path.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help