Re: [PATCH 10/16] virtio_net: use virtqueue_add_sgs[] for command buffers.
From: Rusty Russell
Date: Thu Feb 21 2013 - 01:56:13 EST
Wanlong Gao <gaowanlong@xxxxxxxxxxxxxx> writes:
> On 02/19/2013 03:56 PM, Rusty Russell wrote:
>> It's a bit cleaner to hand multiple sgs, rather than one big one.
>>
>> Signed-off-by: Rusty Russell <rusty@xxxxxxxxxxxxxxx>
...
>> + BUG_ON(!virtio_has_feature(vi->vdev, VIRTIO_NET_F_CTRL_VQ));
>>
>> - ctrl.class = class;
>> - ctrl.cmd = cmd;
>
> The class and cmd assignment of ctrl header is forgotten?
>
> Thanks,
> Wanlong Gao
Good catch, fixed.
Thanks,
Rusty.
--
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/