From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:40167) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W5IMR-00023A-AK for qemu-devel@nongnu.org; Mon, 20 Jan 2014 12:10:15 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W5IMI-00024B-V5 for qemu-devel@nongnu.org; Mon, 20 Jan 2014 12:10:07 -0500 Received: from mail-ee0-x231.google.com ([2a00:1450:4013:c00::231]:45563) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W5IMI-00023x-OO for qemu-devel@nongnu.org; Mon, 20 Jan 2014 12:09:58 -0500 Received: by mail-ee0-f49.google.com with SMTP id d17so3544456eek.22 for ; Mon, 20 Jan 2014 09:09:58 -0800 (PST) From: Vincenzo Maffione Date: Mon, 20 Jan 2014 18:07:03 +0100 Message-Id: <1390237625-29304-4-git-send-email-v.maffione@gmail.com> In-Reply-To: <1390237625-29304-1-git-send-email-v.maffione@gmail.com> References: <1390237625-29304-1-git-send-email-v.maffione@gmail.com> Subject: [Qemu-devel] [PATCH v3 3/5] net: TAP uses NetClientInfo offloading callbacks List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: aliguori@amazon.com, marcel.a@redhat.com, jasowang@redhat.com, Vincenzo Maffione , lcapitulino@redhat.com, stefanha@redhat.com, dmitry@daynix.com, pbonzini@redhat.com, g.lettieri@iet.unipi.it, rizzo@iet.unipi.it The TAP NetClientInfo structure is inizialized with the TAP-specific functions that manipulates offloading features. Signed-off-by: Vincenzo Maffione --- net/tap.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/net/tap.c b/net/tap.c index c805f3c..d34ec88 100644 --- a/net/tap.c +++ b/net/tap.c @@ -314,6 +314,12 @@ static NetClientInfo net_tap_info = { .receive_iov = tap_receive_iov, .poll = tap_poll, .cleanup = tap_cleanup, + .has_ufo = tap_has_ufo, + .has_vnet_hdr = tap_has_vnet_hdr, + .has_vnet_hdr_len = tap_has_vnet_hdr_len, + .using_vnet_hdr = tap_using_vnet_hdr, + .set_offload = tap_set_offload, + .set_vnet_hdr_len = tap_set_vnet_hdr_len, }; static TAPState *net_tap_fd_init(NetClientState *peer, -- 1.8.5.2