X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;ds=sidebyside;f=lib%2Fnetdev-pltap.c;fp=lib%2Fnetdev-pltap.c;h=04e68bad30d2b453d45a5c5d9d3a545961d48840;hb=1e827902be9194d71ea851c9ce2676f65eeed33a;hp=46ab2fd6a676ae3e90aedada6cadbf5fe3900119;hpb=6b4b2f598246e87237342a9179a0d29e202ebe65;p=sliver-openvswitch.git diff --git a/lib/netdev-pltap.c b/lib/netdev-pltap.c index 46ab2fd6a..04e68bad3 100644 --- a/lib/netdev-pltap.c +++ b/lib/netdev-pltap.c @@ -507,13 +507,14 @@ netdev_pltap_set_config(struct netdev *dev_, const struct smap *args) } static int -netdev_pltap_rx_recv(struct netdev_rx *rx_, void *buffer, size_t size) +netdev_pltap_rx_recv(struct netdev_rx *rx_, struct ofpbuf *buffer) { + size_t size = ofpbuf_tailroom(buffer); struct netdev_rx_pltap *rx = netdev_rx_pltap_cast(rx_); struct tun_pi pi; struct iovec iov[2] = { { .iov_base = &pi, .iov_len = sizeof(pi) }, - { .iov_base = buffer, .iov_len = size } + { .iov_base = buffer->data, .iov_len = size } }; for (;;) { ssize_t retval; @@ -862,8 +863,6 @@ const struct netdev_class netdev_pltap_class = { netdev_pltap_update_flags, - netdev_pltap_change_seq, - netdev_pltap_rx_alloc, netdev_pltap_rx_construct, netdev_pltap_rx_destruct,