From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from tyo201.gate.nec.co.jp (TYO201.gate.nec.co.jp [210.143.35.51]) by dpdk.org (Postfix) with ESMTP id 6F8A13F9 for ; Fri, 6 Jun 2014 13:08:29 +0200 (CEST) Received: from mailgate3.nec.co.jp ([10.7.69.160]) by tyo201.gate.nec.co.jp (8.13.8/8.13.4) with ESMTP id s56B8gPZ027876 for ; Fri, 6 Jun 2014 20:08:42 +0900 (JST) Received: from mailsv.nec.co.jp (imss62.nec.co.jp [10.7.69.157]) by mailgate3.nec.co.jp (8.11.7/3.7W-MAILGATE-NEC) with ESMTP id s56B8gi04641 for ; Fri, 6 Jun 2014 20:08:42 +0900 (JST) Received: from mail01b.kamome.nec.co.jp (mail01b.kamome.nec.co.jp [10.25.43.2]) by mailsv.nec.co.jp (8.13.8/8.13.4) with ESMTP id s56B8Qjt022391 for ; Fri, 6 Jun 2014 20:08:42 +0900 (JST) Received: from bpxc99gp.gisp.nec.co.jp ([10.38.151.142] [10.38.151.142]) by mail03.kamome.nec.co.jp with ESMTP id BT-MMP-81975; Fri, 6 Jun 2014 20:05:12 +0900 Received: from BPXM14GP.gisp.nec.co.jp ([169.254.1.238]) by BPXC14GP.gisp.nec.co.jp ([10.38.151.142]) with mapi id 14.02.0328.011; Fri, 6 Jun 2014 20:05:11 +0900 From: Hiroshi Shimamoto To: "dev@dpdk.org" Thread-Topic: [memnic PATCH 1/5] common: update memnic.h to support variable frame size Thread-Index: Ac+BdyVxxuB2RVHeS5mmG+Evtat1bQ== Date: Fri, 6 Jun 2014 11:05:11 +0000 Message-ID: <7F861DC0615E0C47A872E6F3C5FCDDBD0110212E@BPXM14GP.gisp.nec.co.jp> Accept-Language: ja-JP, en-US Content-Language: ja-JP X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.205.5.123] Content-Type: text/plain; charset="iso-2022-jp" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Cc: Hayato Momma Subject: [dpdk-dev] [memnic PATCH 1/5] common: update memnic.h to support variable frame size X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Jun 2014 11:08:30 -0000 From: Hiroshi Shimamoto Update MEMNIC data structure in common header file. Prepare to support extra features for MEMNIC. Change name reserved to request which will be used to negotiate between host and guest, and add feature flag and other definitions. Signed-off-by: Hiroshi Shimamoto Reviewed-by: Hayato Momma --- common/memnic.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/common/memnic.h b/common/memnic.h index 84e941c..d5a651f 100644 --- a/common/memnic.h +++ b/common/memnic.h @@ -42,19 +42,24 @@ #define MEMNIC_MAX_PACKET_SIZE (4096) =20 #define MEMNIC_MAX_FRAME_LEN (1500 + 14 + 4) /* MTU + ether header + vlan = */ +#define MEMNIC_MAX_JUMBO_FRAME_LEN (MEMNIC_MAX_PACKET_SIZE - 8) =20 struct memnic_header { uint32_t magic; uint32_t version; uint32_t valid; uint32_t reset; - uint32_t features; - uint32_t reserved; + uint32_t features; /* features this MEMNIC provides */ + uint32_t request; /* requesting features from Guest */ union { uint8_t mac_addr[6]; uint8_t dummy[8]; }; + /* for extra features */ + uint32_t framesz; }; +#define MEMNIC_FEAT_FRAME_SIZE (0x00000001) +#define MEMNIC_FEAT_ALL (MEMNIC_FEAT_FRAME_SIZE) =20 struct memnic_info { uint32_t flags; --=20 1.8.4