common/sfc_efx/base: support MAC address edit actions in MAE
authorIvan Malov <ivan.malov@oktetlabs.ru>
Wed, 17 Nov 2021 11:44:37 +0000 (14:44 +0300)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 17 Nov 2021 13:10:08 +0000 (14:10 +0100)
commit92bafeffdcf7c3a57895441c28a73b8cfa50db1d
tree8d5cfffc8d17475addce291c909d2177c133d87c
parente62a0d6a8ed15605849f829f90d5ecf8cf32de70
common/sfc_efx/base: support MAC address edit actions in MAE

In a tunnel packet, these actions affect the inner header if
action DECAP is set; otherwise, they affect the outer header.

Adding these actions is done in two steps: add the action to
the action mask and indicate the MAC address entry ID to use.
This allows the user to check the order of actions first and
allocate resources when time comes to enable the action rule.

Signed-off-by: Ivan Malov <ivan.malov@oktetlabs.ru>
Reviewed-by: Andrew Rybchenko <andrew.rybchenko@oktetlabs.ru>
Reviewed-by: Andy Moreton <amoreton@xilinx.com>
drivers/common/sfc_efx/base/efx.h
drivers/common/sfc_efx/base/efx_impl.h
drivers/common/sfc_efx/base/efx_mae.c
drivers/common/sfc_efx/version.map