]> git.proxmox.com Git - mirror_ovs.git/commit - lib/tc.c
tc: Make the actions order consistent
authorChris Mi <chrism@mellanox.com>
Tue, 10 Apr 2018 05:18:08 +0000 (14:18 +0900)
committerSimon Horman <simon.horman@netronome.com>
Thu, 12 Apr 2018 09:08:29 +0000 (11:08 +0200)
commit0c70132cd28800b97672952a1a09e12ffc376300
tree09ed5fb41d5f0158df580edafe1304e1ee1c8793
parent9251ccc8cc490485be38df40ae3dcd1deb33ae06
tc: Make the actions order consistent

When OVS DP passes the actions to TC library, we save all the
actions in data structure tc_flower and each action type has its
own field in tc_flower. So when TC library passes the actions to
kernel, actually the actions order is lost.

We add an actions array in tc_flower to keep the actions order
in this patch.

Signed-off-by: Chris Mi <chrism@mellanox.com>
Reviewed-by: Paul Blakey <paulb@mellanox.com>
Reviewed-by: Roi Dayan <roid@mellanox.com>
Signed-off-by: Simon Horman <simon.horman@netronome.com>
lib/netdev-tc-offloads.c
lib/tc.c
lib/tc.h