]> git.baikalelectronics.ru Git - kernel.git/commit
bnx2x: Fix invalid memory access in rss hash config path.
authorSudarsana Reddy Kalluru <sudarsana.kalluru@cavium.com>
Tue, 24 Jul 2018 09:43:52 +0000 (02:43 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 24 Jul 2018 23:33:02 +0000 (16:33 -0700)
commit8429f4c111516016670f0e0e2b37b73398a67ecd
tree358ebe9287ce9682b6d27e79c0b70cf5583c967c
parent49ebd958f590c3f51e3d3abb46f1dea77a34c431
bnx2x: Fix invalid memory access in rss hash config path.

Rx hash/filter table configuration uses rss_conf_obj to configure filters
in the hardware. This object is initialized only when the interface is
brought up.
This patch adds driver changes to configure rss params only when the device
is in opened state. In port disabled case, the config will be cached in the
driver structure which will be applied in the successive load path.

Please consider applying it to 'net' branch.

Signed-off-by: Sudarsana Reddy Kalluru <Sudarsana.Kalluru@cavium.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnx2x/bnx2x_ethtool.c