OSDN Git Service

bnxt_en: Do not accept fragments for aRFS flow steering.
authorMichael Chan <michael.chan@broadcom.com>
Mon, 27 Jan 2020 09:56:17 +0000 (04:56 -0500)
committerDavid S. Miller <davem@davemloft.net>
Mon, 27 Jan 2020 10:33:28 +0000 (11:33 +0100)
commitf47d0e19ae99329177423db80f86a601f8cd8e3e
tree1d47bb9c6ec142ce174fa4d67e21361e27f111c3
parentc66c06c5e28a55920c87b386876461c139aa1878
bnxt_en: Do not accept fragments for aRFS flow steering.

In bnxt_rx_flow_steer(), if the dissected packet is a fragment, do not
proceed to create the ntuple filter and return error instead.  Otherwise
we would create a filter with 0 source and destination ports because
the dissected ports would not be available for fragments.

Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnxt/bnxt.c