diff options
author | Jakub Kicinski <jakub.kicinski@netronome.com> | 2017-09-03 04:26:03 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-09-04 07:22:05 +0300 |
commit | 023a928461e9370e73de2d5ef1a7e44a8033d2a6 (patch) | |
tree | 471bc6e4aaf22638e3f845b6407dc45c566430fb /drivers/net/ethernet/netronome/nfp/flower/cmsg.c | |
parent | 9d8b17bed757a3c5edbd6c1d09e52cbff6f2cc78 (diff) | |
download | linux-023a928461e9370e73de2d5ef1a7e44a8033d2a6.tar.xz |
nfp: be drop monitor friendly
Use dev_consume_skb_any() in place of dev_kfree_skb_any()
when control frame has been successfully processed in flower
and on the driver's main TX completion path.
Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Reviewed-by: Simon Horman <simon.horman@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/netronome/nfp/flower/cmsg.c')
-rw-r--r-- | drivers/net/ethernet/netronome/nfp/flower/cmsg.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/ethernet/netronome/nfp/flower/cmsg.c b/drivers/net/ethernet/netronome/nfp/flower/cmsg.c index d82d9888d676..e014d862b9b6 100644 --- a/drivers/net/ethernet/netronome/nfp/flower/cmsg.c +++ b/drivers/net/ethernet/netronome/nfp/flower/cmsg.c @@ -189,8 +189,11 @@ nfp_flower_cmsg_process_one_rx(struct nfp_app *app, struct sk_buff *skb) default: nfp_flower_cmsg_warn(app, "Cannot handle invalid repr control type %u\n", type); + goto out; } + dev_consume_skb_any(skb); + return; out: dev_kfree_skb_any(skb); } |