[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAHXqBFKe+nAGk8gjjOxRSbgtPSPHXcz3_fNjaBaxh48vPvDysQ@mail.gmail.com>
Date: Tue, 7 Feb 2012 21:33:29 +0100
From: Michał Mirosław <mirqus@...il.com>
To: greearb@...delatech.com
Cc: netdev@...r.kernel.org
Subject: Re: [PATCH 1/5] send-crc: Add framework to allow sending packets with
customized CRC.
2012/2/7 <greearb@...delatech.com>:
> From: Ben Greear <greearb@...delatech.com>
>
> This is useful for testing RX handling of frames with bad
> CRCs.
>
> Requires driver support to actually put the packet on the
> wire properly.
[...]
I like this idea. I think that this is not a feature to have in
dev->features to toggle, though. Driver either supports this or not,
so it's better to put it in dev->priv_flags instead. Disabling of FCS
inserting is a per-packet option in the drivers, isn't it?
For one problem with toggling: if you create a socket using it and
later turn off the feature, the socket will still send skbs with FCS
appended.
Best Regards,
Michał Mirosław
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists