net/enic: share flow actions with same signature
authorJohn Daley <johndale@cisco.com>
Wed, 30 Sep 2020 03:45:04 +0000 (20:45 -0700)
committerFerruh Yigit <ferruh.yigit@intel.com>
Thu, 8 Oct 2020 17:58:10 +0000 (19:58 +0200)
commitbb66d562aefca4d62df58c5a4ccf30858a815acf
tree26c787d1cbd77a7aaa73c8f7cb378309611907d7
parent8e6fa199d1e7ec032a4cbb5e80276cbfad02098e
net/enic: share flow actions with same signature

Flow actions are a limited resource on the Cisco VIC, but they
can be shared between flows if they are exactly the same.
Use a hash table and a reference count in the PMD to enable sharing
actions with the same signature between flows.

Signed-off-by: John Daley <johndale@cisco.com>
Reviewed-by: Hyong Youb Kim <hyonkim@cisco.com>
drivers/net/enic/enic_fm_flow.c