Re: [PATCH v2 2/4] virtio_net: Add a set_rx_mode interface

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Rusty Russell
Date: Thursday, January 29, 2009 - 10:30 pm

On Friday 30 January 2009 09:35:12 Alex Williamson wrote: 

Hmm, this check duplicates the one in virtnet_send_command; after
all your patches, is it ever called with !VIRTIO_NET_F_CTRL_RX?  Maybe it should be a BUG_ON in there?


Hmm, we can't do anything with this error.  I'd be very tempted to define the API to say "this can't fail".  Leave this code in as a sanity check, but have a comment to that effect?


Comment above/beside these two perhaps?
/* Supported if VIRTIO_NET_F_CTRL_RX */

Cheers,
Rusty.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH v2 0/4] virtio_net: Add MAC and VLAN filtering, Alex Williamson, (Thu Jan 29, 4:05 pm)
[PATCH v2 2/4] virtio_net: Add a set_rx_mode interface, Alex Williamson, (Thu Jan 29, 4:05 pm)
[PATCH v2 3/4] virtio_net: Add a MAC filter table, Alex Williamson, (Thu Jan 29, 4:05 pm)
Re: [PATCH v2 0/4] virtio_net: Add MAC and VLAN filtering, Rusty Russell, (Thu Jan 29, 10:03 pm)
Re: [PATCH v2 2/4] virtio_net: Add a set_rx_mode interface, Rusty Russell, (Thu Jan 29, 10:30 pm)
Re: [PATCH v2 3/4] virtio_net: Add a MAC filter table, Rusty Russell, (Thu Jan 29, 10:46 pm)
Re: [PATCH v2 0/4] virtio_net: Add MAC and VLAN filtering, Rusty Russell, (Fri Jan 30, 12:05 am)
Re: [PATCH v2 0/4] virtio_net: Add MAC and VLAN filtering, David Miller, (Fri Jan 30, 12:12 am)
[PATCH v3 0/4] virtio_net: Add MAC and VLAN filtering, Alex Williamson, (Sun Feb 1, 1:05 pm)
[PATCH v3 2/4] virtio_net: Add a set_rx_mode interface, Alex Williamson, (Sun Feb 1, 1:05 pm)
[PATCH v3 3/4] virtio_net: Add a MAC filter table, Alex Williamson, (Sun Feb 1, 1:05 pm)
Re: [PATCH v3 3/4] virtio_net: Add a MAC filter table, Rusty Russell, (Mon Feb 2, 2:57 am)
Re: [PATCH v3 2/4] virtio_net: Add a set_rx_mode interface, Alex Williamson, (Mon Feb 2, 2:34 pm)