net/cxgbe: fix duplicate MAC addresses in MPS TCAM
authorKarra Satwik <kaara.satwik@chelsio.com>
Fri, 11 Sep 2020 23:47:51 +0000 (05:17 +0530)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 18 Sep 2020 16:55:10 +0000 (18:55 +0200)
commit0dd95bc917e9a29065a8f73e13807492dca1e509
tree613b5451c0c81b2f5bfcc30fdeb61df239bf4d80
parentae8f4cf3283e4036b56709cee74ddfa386de5f6b
net/cxgbe: fix duplicate MAC addresses in MPS TCAM

During MAC address insertion to MPS TCAM, add a default mask when
the mask is not explicitly specified. Otherwise, driver misses the
mask comparison and ends up inserting duplicate entries in the
MPS TCAM.

Fixes: 6fda3f0ddda9 ("net/cxgbe: add API to program hardware MPS table")
Cc: stable@dpdk.org
Signed-off-by: Karra Satwik <kaara.satwik@chelsio.com>
Signed-off-by: Rahul Lakkireddy <rahul.lakkireddy@chelsio.com>
drivers/net/cxgbe/mps_tcam.c