Re: [PATCH 5/5] virtio_net: Add support for VLAN filtering in the hypervisor

Previous thread: Re: [PATCH 2/5] virtio_net: Add a virtqueue for outbound control commands by Alex Williamson on Monday, January 26, 2009 - 9:00 pm. (4 messages)

Next thread: Re: [PATCH] : Remove unused variable pdev from drivers/net/r6040.c by Manish Katiyar on Monday, January 26, 2009 - 9:28 pm. (2 messages)
From: Alex Williamson
Date: Monday, January 26, 2009 - 9:19 pm

Hi Rusty,


It does stand out a bit.  I can't think of a valid reason for why I had


The VLAN_ENABLE command can either enable or disable the VLAN filter, so
the vlan_filter arg is setting enable to "on".  A feature bit might be
more efficient, but since this happens at device init and the enable
will fail if it's not supported by the backend, it seemed redundant.

I agree the success/failure logic would be more clear w/o the !, I'll
switch this to a == 0, or something better depending on what we decide
to do with send_command.  Thanks for the comments,

Alex

-- 
Alex Williamson                             HP Open Source & Linux Org.

--

Previous thread: Re: [PATCH 2/5] virtio_net: Add a virtqueue for outbound control commands by Alex Williamson on Monday, January 26, 2009 - 9:00 pm. (4 messages)

Next thread: Re: [PATCH] : Remove unused variable pdev from drivers/net/r6040.c by Manish Katiyar on Monday, January 26, 2009 - 9:28 pm. (2 messages)