Re: [PATCH 10/27] ixgb: Don't check for vlan group on transmit
flat view
From: Jesse Gross <hidden>
Date: 2010-12-13 01:00:42
On Fri, Dec 10, 2010 at 10:17 PM, Jeff Kirsher [off-list ref] wrote:
From: Emil Tantilov <redacted> Based on a patch from Jesse Gross. Enable vlan tag insertion even when vlan group is not configured. For ixgb HW both CTRL0.VME and VLE bit in the Tx descriptor need to be set in order to enable HW acceleration. Introduced separate functions for enabling/disabling of vlan tag stripping similar to ixgbe.
Thanks for working on this. However, I don't think that this patch actually does what it says. In ixgb_xmit_frame() it's still checking whether adapter->vlgrp is non-null before inserting a tag, so it will drop tags unless a vlan group is configured. Also, since it's not currently possible to toggle NETIF_F_HW_VLAN_RX, vlan stripping will never get disabled. This is actually a regression since before vlan stripping would get disabled if no vlan group was configured. Now, vlan headers will get silently dropped if there is no vlan group. Regardless of that, I still think this is a useful change on the road towards adopting the new vlan interfaces, the problem is just that currently it's halfway in between the old and the new. Given that, it would obviously be much better to move all the way over the new when addressing this. Out of curiosity, is the implication of this that vlan insertion on transmit and stripping on receive are always configured together? I don't have hardware supported by this driver but when I worked on ixgbe (which is at least superficially similar in this area) I didn't have any problems configuring them independently. Thanks.