On Sat, Nov 4, 2017 at 5:50 PM, Saeed Mahameed <[email protected]> wrote: > From: Huy Nguyen <[email protected]> > > 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 <[email protected]> > Reviewed-by: Parav Pandit <[email protected]> > Signed-off-by: Saeed Mahameed <[email protected]>
Reviewed-by: Or Gerlitz <[email protected]>
