net: vlan: Etherent layer missed L2 header
When VLAN is enabled, ethernet l2 layer fills ethernet header but not added to the network buffer. Fixes #15346 Signed-off-by: Ravi kumar Veeramally <ravikumar.veeramally@linux.intel.com>
This commit is contained in:
parent
44bfefce14
commit
189b22789c
1 changed files with 1 additions and 0 deletions
|
@ -451,6 +451,7 @@ static struct net_buf *ethernet_fill_header(struct ethernet_context *ctx,
|
|||
hdr_vlan->type = ptype;
|
||||
hdr_vlan->vlan.tpid = htons(NET_ETH_PTYPE_VLAN);
|
||||
hdr_vlan->vlan.tci = htons(net_pkt_vlan_tci(pkt));
|
||||
net_buf_add(hdr_frag, sizeof(struct net_eth_vlan_hdr));
|
||||
|
||||
print_vlan_ll_addrs(pkt, ntohs(hdr_vlan->type),
|
||||
net_pkt_vlan_tci(pkt),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue