]> www.infradead.org Git - users/jedix/linux-maple.git/commit
bnxt_en: Workaround Nitro A0 hardware RX bug (part 2).
authorPrashant Sreedharan <prashant.sreedharan@broadcom.com>
Mon, 18 Jul 2016 11:15:22 +0000 (07:15 -0400)
committerDhaval Giani <dhaval.giani@oracle.com>
Fri, 20 Jan 2017 17:58:01 +0000 (12:58 -0500)
commit01fc9194b964e1d89d3ed17c9b6b31740445e672
treec95155ff74e1d5050409e72d3022dad73a53e28b
parent4e10d19611439cb8ef5f5b15324adafe325776b6
bnxt_en: Workaround Nitro A0 hardware RX bug (part 2).

Orabug: 24567991

The hardware is unable to drop rx packets not matching the RX filters.  To
workaround it, we create a special VNIC and configure the hardware to
direct all packets not matching the filters to it.  We then setup the
driver to drop packets received on this VNIC.

This patch creates the infrastructure for this VNIC, reserves a
completion ring, and rx rings.  Only shared completion ring mode is
supported.  The next 2 patches add a NAPI to handle packets from this
VNIC and the setup of the VNIC.

Signed-off-by: Prashant Sreedharan <prashant.sreedharan@broadcom.com>
Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
(cherry picked from commit 765951938e2fe2e30571ef4a7de6a46659ce4c68)
Signed-off-by: Brian Maly <brian.maly@oracle.com>
Signed-off-by: Dhaval Giani <dhaval.giani@oracle.com>
drivers/net/ethernet/broadcom/bnxt/bnxt.c
drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c