Re: [PATCH v2] VLAN, support ingress/egress priority map flushing

2017-03-13 Thread Thierry Du Tre
On 13-03-17 16:28, Eric Dumazet wrote: On Mon, 2017-03-13 at 15:36 +0100, Thierry Du Tre wrote: +void vlan_dev_flush_egress_priority(const struct net_device *dev) +{ + struct vlan_dev_priv *vlan = vlan_dev_priv(dev); + struct vlan_priority_tci_mapping *mp; + int i; + +

Re: [PATCH v2] VLAN, support ingress/egress priority map flushing

2017-03-13 Thread Eric Dumazet
On Mon, 2017-03-13 at 15:36 +0100, Thierry Du Tre wrote: > +void vlan_dev_flush_egress_priority(const struct net_device *dev) > +{ > + struct vlan_dev_priv *vlan = vlan_dev_priv(dev); > + struct vlan_priority_tci_mapping *mp; > + int i; > + > + for (i = 0; i <

[PATCH v2] VLAN, support ingress/egress priority map flushing

2017-03-13 Thread Thierry Du Tre
When sending packets via a vlan device we can manipulate the priority bits in the vlan header (PCP) via a mapping based on tc class value. Similarly, when packets are received via a vlan device, the PCP value can be mapped onto a tc class value, which is available for iptables rules and tc