Message ID | 20190923062702.3836-25-qi.z.zhang@intel.com (mailing list archive) |
---|---|
State | Superseded, archived |
Delegated to: | xiaolong ye |
Headers |
Return-Path: <dev-bounces@dpdk.org> X-Original-To: patchwork@dpdk.org Delivered-To: patchwork@dpdk.org Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 7A49A1BF2F; Mon, 23 Sep 2019 08:25:35 +0200 (CEST) Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id 571B31BE92 for <dev@dpdk.org>; Mon, 23 Sep 2019 08:24:53 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 22 Sep 2019 23:24:53 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,539,1559545200"; d="scan'208";a="363530599" Received: from dpdk51.sh.intel.com ([10.67.110.245]) by orsmga005.jf.intel.com with ESMTP; 22 Sep 2019 23:24:51 -0700 From: Qi Zhang <qi.z.zhang@intel.com> To: wenzhuo.lu@intel.com, qiming.yang@intel.com Cc: dev@dpdk.org, xiaolong.ye@intel.com, Qi Zhang <qi.z.zhang@intel.com>, Junfeng Guo <junfeng.guo@intel.com>, Paul M Stillwell Jr <paul.m.stillwell.jr@intel.com> Date: Mon, 23 Sep 2019 14:26:55 +0800 Message-Id: <20190923062702.3836-25-qi.z.zhang@intel.com> X-Mailer: git-send-email 2.13.6 In-Reply-To: <20190923062702.3836-1-qi.z.zhang@intel.com> References: <20190902035551.16852-1-qi.z.zhang@intel.com> <20190923062702.3836-1-qi.z.zhang@intel.com> Subject: [dpdk-dev] [PATCH v4 24/30] net/ice/base: fix 4 byte alignment for pppoe dummy packet X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions <dev.dpdk.org> List-Unsubscribe: <https://mails.dpdk.org/options/dev>, <mailto:dev-request@dpdk.org?subject=unsubscribe> List-Archive: <http://mails.dpdk.org/archives/dev/> List-Post: <mailto:dev@dpdk.org> List-Help: <mailto:dev-request@dpdk.org?subject=help> List-Subscribe: <https://mails.dpdk.org/listinfo/dev>, <mailto:dev-request@dpdk.org?subject=subscribe> Errors-To: dev-bounces@dpdk.org Sender: "dev" <dev-bounces@dpdk.org> |
Series |
net/ice/base: share code update secend batch.
|
|
Checks
Context | Check | Description |
---|---|---|
ci/checkpatch | success | coding style OK |
Commit Message
Qi Zhang
Sept. 23, 2019, 6:26 a.m. UTC
Add two bytes to meet the requirement of 4 byte alignment for dummy packet for creating switch rule for PPPoE. Fixes: 032b6c617a96 ("net/ice/base: add support for GTP and PPPoE protocols") Signed-off-by: Junfeng Guo <junfeng.guo@intel.com> Signed-off-by: Paul M Stillwell Jr <paul.m.stillwell.jr@intel.com> Signed-off-by: Qi Zhang <qi.z.zhang@intel.com> --- drivers/net/ice/base/ice_switch.c | 2 ++ 1 file changed, 2 insertions(+)
Comments
> -----Original Message----- > From: Zhang, Qi Z > Sent: Monday, September 23, 2019 2:27 PM > To: Lu, Wenzhuo <wenzhuo.lu@intel.com>; Yang, Qiming > <qiming.yang@intel.com> > Cc: dev@dpdk.org; Ye, Xiaolong <xiaolong.ye@intel.com>; Zhang, Qi Z > <qi.z.zhang@intel.com>; Guo, Junfeng <junfeng.guo@intel.com>; Stillwell Jr, > Paul M <paul.m.stillwell.jr@intel.com> > Subject: [PATCH v4 24/30] net/ice/base: fix 4 byte alignment for pppoe 4 bytes, same as below. > dummy packet > > Add two bytes to meet the requirement of 4 byte alignment for dummy > packet for creating switch rule for PPPoE. > > Fixes: 032b6c617a96 ("net/ice/base: add support for GTP and PPPoE > protocols") > > Signed-off-by: Junfeng Guo <junfeng.guo@intel.com> > Signed-off-by: Paul M Stillwell Jr <paul.m.stillwell.jr@intel.com> > Signed-off-by: Qi Zhang <qi.z.zhang@intel.com> > --- > drivers/net/ice/base/ice_switch.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/drivers/net/ice/base/ice_switch.c > b/drivers/net/ice/base/ice_switch.c > index 9681d9590..7681ba38b 100644 > --- a/drivers/net/ice/base/ice_switch.c > +++ b/drivers/net/ice/base/ice_switch.c > @@ -441,6 +441,8 @@ dummy_pppoe_packet[] = { > 0x00, 0x11, 0x00, 0x00, > 0x00, 0x00, 0x00, 0x00, > 0x00, 0x00, 0x00, 0x00, > + > + 0x00, 0x00, /* 2 bytes for 4 byte alignment */ > }; > > /* this is a recipe to profile association bitmap */ > -- > 2.13.6
diff --git a/drivers/net/ice/base/ice_switch.c b/drivers/net/ice/base/ice_switch.c index 9681d9590..7681ba38b 100644 --- a/drivers/net/ice/base/ice_switch.c +++ b/drivers/net/ice/base/ice_switch.c @@ -441,6 +441,8 @@ dummy_pppoe_packet[] = { 0x00, 0x11, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + + 0x00, 0x00, /* 2 bytes for 4 byte alignment */ }; /* this is a recipe to profile association bitmap */