On Sat, Nov 4, 2017 at 5:50 PM, Saeed Mahameed <sae...@mellanox.com> wrote: > From: Huy Nguyen <h...@mellanox.com> > > If the port is in DSCP trust state, packets are placed in the right > priority queue based on the dscp value. This is done by selecting > the transmit queue based on the dscp of the skb. > > Until now select_queue honors priority only from the vlan header. > However that is not sufficient in cases where port trust state is DSCP > mode as packet might not even contain vlan header. Therefore if the port > is in dscp trust state and vport's min inline mode is not NONE, > copy the IP header to the eseg's inline header if the skb has it. > This is done by changing the transmit queue sq's min inline mode to L3. > Note that the min inline mode of sqs that belong to other features such > as xdpsq, icosq are not modified. > > Signed-off-by: Huy Nguyen <h...@mellanox.com> > Reviewed-by: Parav Pandit <pa...@mellanox.com> > Signed-off-by: Saeed Mahameed <sae...@mellanox.com>
Reviewed-by: Or Gerlitz <ogerl...@mellanox.com>