File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -303,6 +303,16 @@ static enum net_verdict set_vlan_tag(struct ethernet_context *ctx,
303
303
304
304
return NET_DROP ;
305
305
}
306
+
307
+ static void set_vlan_priority (struct ethernet_context * ctx ,
308
+ struct net_pkt * pkt )
309
+ {
310
+ /* FIXME: Currently just convert packet priority to VLAN
311
+ * priority. This needs to be fixed as VLAN priority is not necessarily
312
+ * the same as packet priority.
313
+ */
314
+ net_pkt_set_vlan_priority (pkt , net_pkt_priority (pkt ));
315
+ }
306
316
#endif /* CONFIG_NET_VLAN */
307
317
308
318
struct net_eth_hdr * net_eth_fill_header (struct ethernet_context * ctx ,
@@ -477,6 +487,8 @@ static enum net_verdict ethernet_send(struct net_if *iface,
477
487
if (set_vlan_tag (ctx , iface , pkt ) == NET_DROP ) {
478
488
return NET_DROP ;
479
489
}
490
+
491
+ set_vlan_priority (ctx , pkt );
480
492
}
481
493
#endif /* CONFIG_NET_VLAN */
482
494
You can’t perform that action at this time.
0 commit comments