Skip to content

Commit 31feb1b

Browse files
chent1996aboch
authored andcommitted
pedit: Fix EncodeActions to add TcGen for pedit action
TcGen was missing in pedit action and the kernel cannont correctly process pedit action. Signed-off-by: Chen Tang <[email protected]>
1 parent 9b61d26 commit 31feb1b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

filter_linux.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -752,6 +752,7 @@ func EncodeActions(attr *nl.RtAttr, actions []Action) error {
752752
table := attr.AddRtAttr(tabIndex, nil)
753753
tabIndex++
754754
pedit := nl.TcPedit{}
755+
toTcGen(action.Attrs(), &pedit.Sel.TcGen)
755756
if action.SrcMacAddr != nil {
756757
pedit.SetEthSrc(action.SrcMacAddr)
757758
}

0 commit comments

Comments
 (0)