Skip to content

Commit

Permalink
ethdev/flow: cleanup
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 fb981a9 commit f0f2923
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 36 deletions.
2 changes: 1 addition & 1 deletion ethdev/flow/item_vlan.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ func (item *ItemVlan) Transform(alloc common.Allocator) (unsafe.Pointer, func(un
C.set_has_more_vlan(cptr, 0)
}

hdr := (*C.struct_rte_vlan_hdr)(off(unsafe.Pointer(cptr), C.ITEM_VLAN_OFF_HDR))
hdr := (*C.struct_rte_vlan_hdr)(unsafe.Add(unsafe.Pointer(cptr), C.ITEM_VLAN_OFF_HDR))
hdr.vlan_tci = C.ushort(item.TCI)
hdr.eth_proto = C.ushort(item.InnerType)
return common.TransformPOD(alloc, cptr)
Expand Down
35 changes: 0 additions & 35 deletions ethdev/flow/utils.go

This file was deleted.

0 comments on commit f0f2923

Please sign in to comment.