mirror of
https://github.com/openvswitch/ovs
synced 2025-08-31 06:15:47 +00:00
odp-execute: Add ISA implementation of set_masked ETH
This commit includes infrastructure changes for enabling set_masked_X actions and also adds support for the AVX512 implementation of the eth_set_addrs action. Signed-off-by: Emma Finn <emma.finn@intel.com> Acked-by: Sunil Pai G <sunil.pai.g@intel.com> Acked-by: Eelco Chaudron <echaudro@redhat.com> Signed-off-by: Ian Stokes <ian.stokes@intel.com>
This commit is contained in:
@@ -22,6 +22,7 @@
|
||||
#include "cpu.h"
|
||||
#include "dpdk.h"
|
||||
#include "dp-packet.h"
|
||||
#include "odp-execute.h"
|
||||
#include "odp-execute-private.h"
|
||||
#include "odp-netlink.h"
|
||||
#include "odp-util.h"
|
||||
@@ -239,6 +240,19 @@ action_autoval_generic(struct dp_packet_batch *batch, const struct nlattr *a)
|
||||
dp_packet_delete_batch(&original_batch, true);
|
||||
}
|
||||
|
||||
void
|
||||
odp_execute_scalar_action(struct dp_packet_batch *batch,
|
||||
const struct nlattr *action)
|
||||
{
|
||||
enum ovs_action_attr type = nl_attr_type(action);
|
||||
|
||||
if (type <= OVS_ACTION_ATTR_MAX &&
|
||||
action_impls[ACTION_IMPL_SCALAR].funcs[type]) {
|
||||
|
||||
action_impls[ACTION_IMPL_SCALAR].funcs[type](batch, action);
|
||||
}
|
||||
}
|
||||
|
||||
int
|
||||
action_autoval_init(struct odp_execute_action_impl *self)
|
||||
{
|
||||
|
Reference in New Issue
Block a user