bnxt_en: Use event bit map in RX path.
authorMichael Chan <michael.chan@broadcom.com>
Mon, 6 Feb 2017 21:55:37 +0000 (16:55 -0500)
committerDavid S. Miller <davem@davemloft.net>
Tue, 7 Feb 2017 18:30:59 +0000 (13:30 -0500)
commit4e5dbbda4c40a239e2ed4bbc98f2aa320e4dcca2
tree2a8c4e105ea6af6d289372e9277a2100d995ac2c
parentc61fb99cae51958a9096d8540c8c05e74cfa7e59
bnxt_en: Use event bit map in RX path.

In the current code, we have separate rx_event and agg_event parameters
to keep track of rx and aggregation events.  Combine these events into
an u8 event mask with different bits defined for different events.  This
way, it is easier to expand the logic to include XDP tx events.

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
drivers/net/ethernet/broadcom/bnxt/bnxt.h