netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] vlan:  Support sending custom Ethernet CRC.
@ 2012-03-06  2:05 greearb
  2012-03-06  2:14 ` David Miller
  0 siblings, 1 reply; 6+ messages in thread
From: greearb @ 2012-03-06  2:05 UTC (permalink / raw)
  To: netdev; +Cc: kaber, Ben Greear

From: Ben Greear <greearb@candelatech.com>

If the underlying device supports sending custom Ethernet CRC,
then enable that feature in the VLANs as well.

NOTE:  You will probably have to disable any
VLAN hardware assist on the underlying device to get
this to properly send packets with this feature enabled.

Signed-off-by: Ben Greear <greearb@candelatech.com>
---
:100644 100644 9988d4a... 6aeb0a3... M	net/8021q/vlan_dev.c
 net/8021q/vlan_dev.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/net/8021q/vlan_dev.c b/net/8021q/vlan_dev.c
index 9988d4a..6aeb0a3 100644
--- a/net/8021q/vlan_dev.c
+++ b/net/8021q/vlan_dev.c
@@ -543,6 +543,9 @@ static int vlan_dev_init(struct net_device *dev)
 	dev->features |= real_dev->vlan_features | NETIF_F_LLTX;
 	dev->gso_max_size = real_dev->gso_max_size;
 
+	if (netif_supports_nofcs(real_dev))
+		dev->priv_flags |= IFF_SUPP_NOFCS;
+
 	/* ipv6 shared card related stuff */
 	dev->dev_id = real_dev->dev_id;
 
-- 
1.7.3.4

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2012-03-06 19:37 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-06  2:05 [PATCH] vlan: Support sending custom Ethernet CRC greearb
2012-03-06  2:14 ` David Miller
2012-03-06  3:59   ` Ben Greear
2012-03-06  4:12     ` David Miller
2012-03-06 16:16       ` Ben Hutchings
2012-03-06 19:36         ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).