Re: [PATCH 7/7] venet: add scatter-gather/GSO support

From: Stephen Hemminger
Date: Mon Aug 03 2009 - 14:34:10 EST


On Mon, 03 Aug 2009 13:18:07 -0400
Gregory Haskins <ghaskins@xxxxxxxxxx> wrote:

> + struct {
> + int sg:1;
> + int tso:1;
> + int ufo:1;
> + int tso6:1;
> + int ecn:1;
> + } flags;

Why do you have to shadow flags that are already available in net_device?
It is bad design to replicate state in a device driver. The problem
with replicated state is that it has to be updated in both places.

--
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/