]> git.baikalelectronics.ru Git - kernel.git/commit
ice: fix adding IP4 IP6 Flow Director rules
authorDan Nowlin <dan.nowlin@intel.com>
Wed, 7 Oct 2020 17:54:47 +0000 (10:54 -0700)
committerJakub Kicinski <kuba@kernel.org>
Fri, 9 Oct 2020 20:14:19 +0000 (13:14 -0700)
commit4c0326438f05d3fffb67833b4cb50f72e0e71f33
treea423022bf70c0bc4a54bae630f5005ab9dbd126f
parent87e6c40aabfd94391cc231b66b0101604a6ec1ed
ice: fix adding IP4 IP6 Flow Director rules

A subsequent addition of an IP4 or IP6 rule after other rules would
overwrite any existing TCAM entries of related L4 protocols(ex: tcp4 or
udp6). This was due to the mask including too many TCAM entries. Add new
packet type masks with bits properly excluded so rules are not overwritten.

Signed-off-by: Dan Nowlin <dan.nowlin@intel.com>
Signed-off-by: Henry Tieman <henry.w.tieman@intel.com>
Tested-by: Brijesh Behera <brijeshx.behera@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/intel/ice/ice_flow.c