Bug 1416
Summary: | net/af_packet: tx_burst() can modify packets | ||
---|---|---|---|
Product: | DPDK | Reporter: | Konstantin Ananyev (konstantin.v.ananyev) |
Component: | ethdev | Assignee: | dev |
Status: | RESOLVED INVALID | ||
Severity: | normal | CC: | konstantin.v.ananyev, linville |
Priority: | Normal | ||
Version: | 24.03 | ||
Target Milestone: | --- | ||
Hardware: | All | ||
OS: | All |
Description
Konstantin Ananyev
2024-04-16 12:29:53 CEST
As Stephen Hemminger <stephen@networkplumber.org> pointed out: vlan_insert will fail if the mbuf is has refcnt > 1. static inline int rte_vlan_insert(struct rte_mbuf **m) { struct rte_ether_hdr *oh, *nh; struct rte_vlan_hdr *vh; /* Can't insert header if mbuf is shared */ if (!RTE_MBUF_DIRECT(*m) || rte_mbuf_refcnt_read(*m) > 1) return -EINVAL; So closing as not a bug. |