ANDROID: Fix up ipvlan merge in 5.10.202
In commit43b781e7cb
("ipvlan: add ipvlan_route_v6_outbound() helper"), DEV_STATS_INC() is used, but that's not a valid api in the 5.10.y Android tree due to it breaking the abi. So fix this up by hand to use the "old-style" stats increment call to resolve the build issues. Fixes:43b781e7cb
("ipvlan: add ipvlan_route_v6_outbound() helper") Signed-off-by: Greg Kroah-Hartman <gregkh@google.com> Change-Id: Id7bdb1b5f742ae32b7f9e8f6db808c5763a8394c
This commit is contained in:
@@ -488,7 +488,7 @@ static int ipvlan_process_v6_outbound(struct sk_buff *skb)
|
||||
|
||||
err = ipvlan_route_v6_outbound(dev, skb);
|
||||
if (unlikely(err)) {
|
||||
DEV_STATS_INC(dev, tx_errors);
|
||||
dev->stats.tx_errors++;
|
||||
kfree_skb(skb);
|
||||
return err;
|
||||
}
|
||||
@@ -497,7 +497,7 @@ static int ipvlan_process_v6_outbound(struct sk_buff *skb)
|
||||
|
||||
err = ip6_local_out(dev_net(dev), skb->sk, skb);
|
||||
if (unlikely(net_xmit_eval(err)))
|
||||
DEV_STATS_INC(dev, tx_errors);
|
||||
dev->stats.tx_errors++;
|
||||
else
|
||||
ret = NET_XMIT_SUCCESS;
|
||||
return ret;
|
||||
|
Reference in New Issue
Block a user