]> git.dujemihanovic.xyz Git - linux.git/commit
ice: Deduplicate tc action setup
authorMarcin Szycik <marcin.szycik@linux.intel.com>
Mon, 15 Apr 2024 08:49:07 +0000 (10:49 +0200)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Mon, 6 May 2024 16:19:46 +0000 (09:19 -0700)
commitc5e6bd977d7eb840d08b9f071b7dad6721c409a0
treee14cefda9d8e28587527e4b73f91b313baa08ebe
parenta8e682f03748f72e82e89f178c1838305e789bb2
ice: Deduplicate tc action setup

ice_tc_setup_redirect_action() and ice_tc_setup_mirror_action() are almost
identical, except for setting filter action. Reduce them to one function
with an extra param, which handles both cases.

Reviewed-by: Mateusz Polchlopek <mateusz.polchlopek@intel.com>
Signed-off-by: Marcin Szycik <marcin.szycik@linux.intel.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Tested-by: Sujai Buvaneswaran <sujai.buvaneswaran@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/ice/ice_tc_lib.c