Skip to content

Commit

Permalink
app/test-sniffer: reuse ethdev/flow
Browse files Browse the repository at this point in the history
Signed-off-by: Yerden Zhumabekov <yerden.zhumabekov@gmail.com>
  • Loading branch information
yerden committed Feb 10, 2023
1 parent 02fe973 commit fb981a9
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions app/test-sniffer/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,9 @@ func rssEthVlanIPv4(pid ethdev.Port, conf *ethdev.RssConf) (*flow.Flow, error) {
attr := &flow.Attr{Ingress: true}

pattern := []flow.Item{
{Spec: flow.ItemTypeEth}, // Ethernet
{Spec: flow.ItemTypeVlan}, // VLAN
{Spec: flow.ItemTypeIPv4}, // IPv4
{Spec: &flow.ItemEth{}}, // Ethernet
{Spec: &flow.ItemVlan{}}, // VLAN
{Spec: &flow.ItemIPv4{}}, // IPv4
}

actions := []flow.Action{
Expand All @@ -83,9 +83,9 @@ func mlxRssEthVlanIPv4(pid ethdev.Port, conf *ethdev.RssConf) (*flow.Flow, error
attr := &flow.Attr{Ingress: true}

pattern := []flow.Item{
{Spec: flow.ItemTypeEth}, // Ethernet
{Spec: flow.ItemTypeVlan}, // VLAN
{Spec: flow.ItemTypeIPv4}, // IPv4
{Spec: &flow.ItemEth{}}, // Ethernet
{Spec: &flow.ItemVlan{}}, // VLAN
{Spec: &flow.ItemIPv4{}}, // IPv4
}

var info ethdev.DevInfo
Expand Down

0 comments on commit fb981a9

Please sign in to comment.