]> git.baikalelectronics.ru Git - kernel.git/commit
bnxt_en: Fix .ndo_setup_tc() to include XDP rings.
authorMichael Chan <michael.chan@broadcom.com>
Wed, 23 Aug 2017 23:34:03 +0000 (19:34 -0400)
committerDavid S. Miller <davem@davemloft.net>
Thu, 24 Aug 2017 05:42:42 +0000 (22:42 -0700)
commit68c8a3aa2ba477e77800ec01444127f75a233159
treee9641bd0a24dd3d588ef27100beb3f71863592aa
parent751c7b4f6e1a9e226bc2e9cf83a57a78bf3c9670
bnxt_en: Fix .ndo_setup_tc() to include XDP rings.

When the number of TX rings is changed in bnxt_setup_tc(), we need to
include the XDP rings in the total TX ring count.

Fixes: e97314883549 ("bnxt_en: Add support for XDP_TX action.")
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