cxgb4: set up filter action after rewrites
authorRaju Rangoju <rajur@chelsio.com>
Fri, 23 Oct 2020 11:58:52 +0000 (17:28 +0530)
committerJakub Kicinski <kuba@kernel.org>
Mon, 26 Oct 2020 23:18:18 +0000 (16:18 -0700)
commit937d8420588421eaa5c7aa5c79b26b42abb288ef
tree2b50af41ad3f25f573415d36cb3329a50494ee94
parentee7a376421dd7bc65b610d42d42c084a0d16d6fa
cxgb4: set up filter action after rewrites

The current code sets up the filter action field before
rewrites are set up. When the action 'switch' is used
with rewrites, this may result in initial few packets
that get switched out don't have rewrites applied
on them.

So, make sure filter action is set up along with rewrites
or only after everything else is set up for rewrites.

Fixes: 12b276fbf6e0 ("cxgb4: add support to create hash filters")
Signed-off-by: Raju Rangoju <rajur@chelsio.com>
Link: https://lore.kernel.org/r/20201023115852.18262-1-rajur@chelsio.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c
drivers/net/ethernet/chelsio/cxgb4/t4_tcb.h