octeontx2-pf: Enable promisc/allmulti match MCAM entries.
authorRakesh Babu <rsaladi2@marvell.com>
Tue, 28 Sep 2021 17:43:45 +0000 (23:13 +0530)
committerDavid S. Miller <davem@davemloft.net>
Wed, 29 Sep 2021 09:27:33 +0000 (10:27 +0100)
commitffd2f89ad05cd620d822112a07b0c5669fa9e333
tree897ba484acabddb9054d31a62df252836ba8e052
parenta365023a76f231cc2fc6e33797e66f3bcaa9f9a9
octeontx2-pf: Enable promisc/allmulti match MCAM entries.

Whenever the interface is brought up/down then set_rx_mode
function is called by the stack which enables promisc/allmulti
MCAM entries. But there are cases when driver brings
interface down and then up such as while changing number
of channels. In these cases promisc/allmulti MCAM entries
are left disabled as set_rx_mode callback is not called.
This patch enables these MCAM entries in all such cases.

Signed-off-by: Rakesh Babu <rsaladi2@marvell.com>
Signed-off-by: Subbaraya Sundeep <sbhatta@marvell.com>
Signed-off-by: Sunil Goutham <sgoutham@marvell.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/octeontx2/nic/otx2_pf.c