net/sfc: set FDIR bit for flow mark in EF100 Rx
According to flow action MARK definition, PMDs must set both
PKT_RX_FDIR and PKT_RX_FDIR_ID if the packet contains a mark.
Fixes: 1aacc3d388
("net/sfc: support user mark and flag Rx for EF100")
Cc: stable@dpdk.org
Signed-off-by: Ivan Malov <ivan.malov@oktetlabs.ru>
Reviewed-by: Andrew Rybchenko <andrew.rybchenko@oktetlabs.ru>
This commit is contained in:
parent
fe9c27a337
commit
142dd26a2f
@ -414,7 +414,7 @@ sfc_ef100_rx_prefix_to_offloads(const struct sfc_ef100_rxq *rxq,
|
||||
user_mark = EFX_OWORD_FIELD(rx_prefix[0],
|
||||
ESF_GZ_RX_PREFIX_USER_MARK);
|
||||
if (user_mark != SFC_EF100_USER_MARK_INVALID) {
|
||||
ol_flags |= PKT_RX_FDIR_ID;
|
||||
ol_flags |= PKT_RX_FDIR | PKT_RX_FDIR_ID;
|
||||
m->hash.fdir.hi = user_mark;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user