]> git.baikalelectronics.ru Git - kernel.git/commit
cxgb4: add support for mirror Rxqs
authorRahul Lakkireddy <rahul.lakkireddy@chelsio.com>
Tue, 30 Jun 2020 13:11:29 +0000 (18:41 +0530)
committerDavid S. Miller <davem@davemloft.net>
Wed, 1 Jul 2020 01:34:34 +0000 (18:34 -0700)
commit8ba0172c46ab5461e4d129f27d32e060b40c79ae
tree5c35439ca11f507853782207de6f8e6fb950163a
parentaa827186c023a5a33d2f6b99d8197ee08fe9c73c
cxgb4: add support for mirror Rxqs

When mirror VI is enabled, allocate the mirror Rxqs and setup the
mirror VI RSS table. The mirror Rxqs are allocated/freed when
the mirror VI is created/destroyed or when underlying port is
brought up/down, respectively.

v3:
- Replace mirror VI refcount_t with normal u32 variable.

v2:
- Use mutex to protect all mirror VI data, instead of just
  mirror Rxqs.
- Remove the un-needed mirror Rxq mutex.

Signed-off-by: Rahul Lakkireddy <rahul.lakkireddy@chelsio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/chelsio/cxgb4/cxgb4.h
drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c
drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c