From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 7BD76423F0; Mon, 16 Jan 2023 14:38:14 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 1173940691; Mon, 16 Jan 2023 14:38:14 +0100 (CET) Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by mails.dpdk.org (Postfix) with ESMTP id 8944140042 for ; Mon, 16 Jan 2023 14:38:12 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1673876292; x=1705412292; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=8kFj/BQTp8fZ9igLNp+maSttAbo0LQbpFBDfOBIMOC8=; b=jV8LHM2QySwvm49FY/lKNBRj1SI/sGDXX3yHanc2LEi+bXSN8dsJWZfl 5qC+uc9Se0S4BKuDPDTWN073VjiRzZTdQxsJGMS7OSqLH8y9Yl143U9dR EvsCwhlOjs0amO3dhaQvfod1MvpVvSst0ma/xyKHLEVKo7ygl8vJXSHtY rASqb92OOe3gH3bvC5TZj2rVcomUScV/Q2PX77T/T/8A/UJiWYLd07Ecj /VsD+UxrbuRZqfYvqiTuFvrMD+aF+A2x3ZVWABqHNVNakDGvqSZQWYHEW u2FbhcUkyEgFDUUTHDhUfnD/fMOT6bjF0UjHGal5z2ZyMe8x7GYWX11ui Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10591"; a="326522613" X-IronPort-AV: E=Sophos;i="5.97,221,1669104000"; d="scan'208";a="326522613" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Jan 2023 05:38:11 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10591"; a="801391391" X-IronPort-AV: E=Sophos;i="5.97,221,1669104000"; d="scan'208";a="801391391" Received: from fmsmsx603.amr.corp.intel.com ([10.18.126.83]) by fmsmga001.fm.intel.com with ESMTP; 16 Jan 2023 05:38:10 -0800 Received: from fmsmsx611.amr.corp.intel.com (10.18.126.91) by fmsmsx603.amr.corp.intel.com (10.18.126.83) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.16; Mon, 16 Jan 2023 05:38:10 -0800 Received: from fmsmsx601.amr.corp.intel.com (10.18.126.81) by fmsmsx611.amr.corp.intel.com (10.18.126.91) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.16; Mon, 16 Jan 2023 05:38:10 -0800 Received: from fmsedg601.ED.cps.intel.com (10.1.192.135) by fmsmsx601.amr.corp.intel.com (10.18.126.81) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.16 via Frontend Transport; Mon, 16 Jan 2023 05:38:10 -0800 Received: from NAM04-DM6-obe.outbound.protection.outlook.com (104.47.73.46) by edgegateway.intel.com (192.55.55.70) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.16; Mon, 16 Jan 2023 05:38:09 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Q7RYCQ9vqSUnRWH8eqld81O22EQ9yJHAbOcNvv7xQn3BiogdPXSaXDNGTnCFLkJnAu35doo1g2ZePANTCHA3uDAKZTVnh1uSJX0g8g6+m/VYZnbngD7F+cWQh9o3LvIUgfIwfPaK7E7a+3ejrBhLxMwNk/M757uJhKZsEI2EBVoanH7+OS7K9hKTi8VTguaPTY90deajYxmQptXaoomXylAC0qX0YIeI23LkN2rwJV1GPhhlY8rCoSJdbVk5vjJpcY2uSrHtAC7bQsZqYxgJIEEX7O9v9vGxBaDoGf6CRvXgk0I+QYiOf6B6jTIKWSenwWHREzwRy0MF3H2L8aF8vQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=0oSdlvuRyPgmaGkSmwb6KjvPKJH9J/NQEuvsatc22b4=; b=AzPxNYZmJnRgY6MdOweArwLL3Qr+B841H4hpq0tX92YupiD/NGvFUH12AHF5oYTNImCv8f9zrmYgSPbP+bOv1Uch2tpmTMp7mnlsqSkBWFCmEGGiSJrZLgTVlrSInSy/343G6IC5V9SnWBK23f3dUgYcHDcrAyyJ3HSDqpsWJF0Sf6FoDOaudYzjqhpIFfzQDCiODK4aFqg8TC7phUg6yqAA4cCENC9TwY2m9WRCP5CmorqJPQxzeB58qfRrGwp9w/gea0vKZJDXYgoegPIy7zwOJJa2e/eetgmarvhLQMoE+oAb7TEPctlUTyi2PHdCtrc/sA1JvSRi/9AvOaXJww== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none Received: from PH7PR11MB5984.namprd11.prod.outlook.com (2603:10b6:510:1e3::15) by DM6PR11MB4610.namprd11.prod.outlook.com (2603:10b6:5:2ab::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6002.13; Mon, 16 Jan 2023 13:38:07 +0000 Received: from PH7PR11MB5984.namprd11.prod.outlook.com ([fe80::4750:caf0:7127:adc7]) by PH7PR11MB5984.namprd11.prod.outlook.com ([fe80::4750:caf0:7127:adc7%9]) with mapi id 15.20.5986.023; Mon, 16 Jan 2023 13:38:06 +0000 From: "Zhang, Ke1X" To: Stephen Hemminger CC: "Zhang, Qi Z" , "Zhang, Yuying" , "dev@dpdk.org" Subject: RE: [PATCH v3] net/ice: add devargs for disabling default mac Thread-Topic: [PATCH v3] net/ice: add devargs for disabling default mac Thread-Index: AQHZJl1BBkNWlH4NbESIqgta8d+L4K6a+hWAgAYXnIA= Date: Mon, 16 Jan 2023 13:38:06 +0000 Message-ID: References: <20221221035804.1241780-1-ke1x.zhang@intel.com> <20230112075538.206709-1-ke1x.zhang@intel.com> <20230112083205.7798fb75@hermes.local> In-Reply-To: <20230112083205.7798fb75@hermes.local> Accept-Language: en-US Content-Language: en-US X-Mentions: stephen@networkplumber.org X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: PH7PR11MB5984:EE_|DM6PR11MB4610:EE_ x-ms-office365-filtering-correlation-id: a3673855-0656-42df-8909-08daf7c6e62d x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 9kTc77plf3Hh8Qyh2WXJfjaCvQyL7t/b1m6zhebYKZeu2W8mZ96xU3nbsgpPqIEEqAb38phYqs8ZvufCFfzMmuZ3ko6XPg4qjh0xyyV5OzF6gm207+k9t185nws41a8NW65IEZPksaIt5HxSPVPaVeTE7HaOj0NhDhBy90V7xMiahaMTjDpe2Qp/d+sHxrIFdZywijpdvWqc9XqtxycM1uP/IVFBKpm+MddyBrQud9+4gtMTaPmXu43AxzhGnOWqjtVgWPLYFUpXLRHLEXu5qT/eYOdbeiw9aq1bb0H/LO7Lm9LmBks7DPZDuvl55imDDCAvFPAJsd6xCuzMwkIXrbHtE4LwpdicUIRAw7t4mZ4EU6IGUfs1x/chrsdeGrrA8Vh4uw7MJU1k9SYc0AbpfmJjbSkpxgOuu+G+j/RwVFOjBQd6rhrIVXo4yruIxg3j125LgKSvCWeAjmq+q/j3TbnpKMGJhfnjyKPr5VuqVk4cO1PstbTpSSHX0B8fT3xX7I4ODqMP82e4n9pwP8gh9+TrFwzQJM+QDsUYJC+yoJhleTENHiGJdbBhb4jt1sKQfGsL22zv/BPb8mPamv4tDk/MUK46ZJJoMKiJQ1ZmEMS80Bfzc2e2jiDKLB792vwdFcEIDA2Mp2wkh2HyjQsnF3czniKX3/uuCZZn01zr8uXeHWht3rPoFlrVXym+KHV4+DEiF0Gz0JWUOAYFwIGOkg== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:PH7PR11MB5984.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230022)(39860400002)(396003)(346002)(136003)(366004)(376002)(451199015)(83380400001)(82960400001)(33656002)(122000001)(5660300002)(38100700002)(86362001)(38070700005)(2906002)(52536014)(8936002)(55016003)(4326008)(76116006)(66556008)(66946007)(66446008)(66476007)(8676002)(64756008)(6916009)(478600001)(9686003)(53546011)(186003)(6506007)(26005)(316002)(54906003)(7696005)(71200400001)(41300700001); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?iso-2022-jp?B?U0dxZFA4QVlXQWlIY0tlRWZ5WldJeDFWL2xCRjdHRzVSaWVCT1JvakZj?= =?iso-2022-jp?B?NkpGTG55bCtqQURGZG5oTEpIUTdMakYrcFNBbE1QZk92RGdNOFNPb29p?= =?iso-2022-jp?B?M2dkb3JFSVRsZTRGWTMyTkVrelRrcnlpSVhkdFB1VEl5eWlpdVFtMzNW?= =?iso-2022-jp?B?TDIzM1hRcEJlWmhLWG5jcDczemFjNnNtYmtQSWtrK1lqUVdQVVZHcmI4?= =?iso-2022-jp?B?aDA2cVZ3YlRiOWZEOG05emIxYWliSDZUdnU1NHMyeHNrbWU1U2wwcTZw?= =?iso-2022-jp?B?OUVKeVU5THJ1UXdUNTZhY09xZkIxVGhpK3BmUDRhVnErSlZXemhTSU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ZTWFdvdnA0cytpblFrY3YrL0ZqRUtXR1JlTjVndkVTL3hK?= =?iso-2022-jp?B?OUFiOHVEU2JRM0ZMdDJiNVVrRk4wNWJGK1dMRTB1bEo1YXM3UXErUzRE?= =?iso-2022-jp?B?VlpwOFJzMU5BK3B5S1dYYitPUDc1R1lhSWJKZUQvd3o2NGJmWTExUzBV?= =?iso-2022-jp?B?NnpZeA==?= Content-Type: text/plain; charset="iso-2022-jp" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: PH7PR11MB5984.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: a3673855-0656-42df-8909-08daf7c6e62d X-MS-Exchange-CrossTenant-originalarrivaltime: 16 Jan 2023 13:38:06.3050 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: vSb8yTwKIkyzzOlp26HdsYFLoMlnRskUwS817/rAYVhisSjPijTlMx8ZHo0Uz6zPX3IMEKvIgLR2B22dp3bilw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR11MB4610 X-OriginatorOrg: intel.com X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org > -----Original Message----- > From: Stephen Hemminger > Sent: Thursday, January 12, 2023 11:32 PM > To: Zhang, Ke1X > Cc: Zhang, Qi Z ; Zhang, Yuying > ; dev@dpdk.org > Subject: Re: [PATCH v3] net/ice: add devargs for disabling default mac >=20 > On Thu, 12 Jan 2023 15:55:38 +0800 > Ke Zhang wrote: >=20 > > From: "ke1x.zhang" > > > > Add the feature that support to disable default mac which will be used > > by ice driver when setting dpdk_devargs config field. > > > > Default mac is not disabled in default, user can choose to disable the > > default mac by setting ``devargs`` parameter ``default-mac-disable``, > > > > for example:: > > -a 80:00.0,default-mac-disable=3D1 > > > > Signed-off-by: ke1x.zhang >=20 > Why is the driver specific option needed? Can't it be handled more genera= lly > by the application. Thanks for your comments. This patch is to support the latency function of a trex, for example: Trex wants to send a packet with tos=3D1. After the peer forwards it back, = it only receives packets with tos=3D1. Other packets will be dropped in the switch stage of pipeline= . 1.If the following rules are set as below: flow create 0 ingress pattern eth / ipv4 tos is 1 / end actions queue index= 1 / end result: the packets will pass as long as the destination mac address matche= s the default mac address. 2.If the following rules are set as below: flow create 0 ingress pattern any / end actions drop / end flow create 0 ingress pattern eth / ipv4 tos is 1 / end actions queue index= 1 / end result: all packages will be dropped. 3.The current solution is to disable the default mac address during initial= ization, and then set the following rules: flow create 0 ingress pattern eth / ipv4 tos is 1 / end actions queue index= 1 / end result: only packages with tos=3D1 can pass=1B$B!#=1B(B Would you please share a better solution for me? @Stephen Hemminger Thanks.