net: Add Software fallback infrastructure for socket dependent offloads
With socket dependent offloads we rely on the netdev to transform the transmitted packets before sending them to the wire. When a packet from an offloaded socket is rerouted to a different device we need to detect it and do the transformation in software. Signed-off-by: Ilya Lesokhin <ilyal@mellanox.com> Signed-off-by: Boris Pismenny <borisp@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
08303c1895
commit
ebf4e808fa
@@ -3112,6 +3112,10 @@ static struct sk_buff *validate_xmit_skb(struct sk_buff *skb, struct net_device
|
||||
if (unlikely(!skb))
|
||||
goto out_null;
|
||||
|
||||
skb = sk_validate_xmit_skb(skb, dev);
|
||||
if (unlikely(!skb))
|
||||
goto out_null;
|
||||
|
||||
if (netif_needs_gso(skb, features)) {
|
||||
struct sk_buff *segs;
|
||||
|
||||
|
Reference in New Issue
Block a user