From owner-freebsd-net@freebsd.org Wed Sep 20 19:06:44 2017 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id DC3D5E1E173; Wed, 20 Sep 2017 19:06:44 +0000 (UTC) (envelope-from David.Somayajulu@cavium.com) Received: from NAM01-SN1-obe.outbound.protection.outlook.com (mail-sn1nam01on0087.outbound.protection.outlook.com [104.47.32.87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (Client CN "mail.protection.outlook.com", Issuer "Microsoft IT SSL SHA2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 8044477AC4; Wed, 20 Sep 2017 19:06:44 +0000 (UTC) (envelope-from David.Somayajulu@cavium.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=pNqkeTE6kRTXbSpC6qR23SCMJmKZ8583eDPtMePqso8=; b=hETqcUgQIqeRcqb1I8d/QvtUYtm/JMybSsRwNvZrSJdbsK9W8/KmD4cA3zSahbEQvK18wZCqCgLmHdCEN/Mw7k8K/jcFUU7lpq1STIL88pOFhrSbhZW3dobVzV4rRweEKUM/o5sgJgNxTU7+AqhtUVutPzU9JL0UR+iG7ntJExI= Received: from DM2PR07MB1481.namprd07.prod.outlook.com (10.161.139.151) by DM2PR07MB621.namprd07.prod.outlook.com (10.141.177.140) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.56.11; Wed, 20 Sep 2017 19:06:43 +0000 Received: from DM2PR07MB1481.namprd07.prod.outlook.com ([fe80::6ce6:72c9:15c6:6c6f]) by DM2PR07MB1481.namprd07.prod.outlook.com ([fe80::6ce6:72c9:15c6:6c6f%17]) with mapi id 15.20.0056.018; Wed, 20 Sep 2017 19:06:42 +0000 From: "Somayajulu, David" To: "freebsd-net@freebsd.org" , "freebsd-drivers@freebsd.org" Subject: Semantics of SIOCDELMULTI from an Ethernet Driver Perspective Thread-Topic: Semantics of SIOCDELMULTI from an Ethernet Driver Perspective Thread-Index: AdMyPmerzpPThrYnTbyr87lYkTvQ8w== Date: Wed, 20 Sep 2017 19:06:42 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=David.Somayajulu@cavium.com; x-originating-ip: [198.186.0.2] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; DM2PR07MB621; 6:qxZoCECZ31pzI8FoLQiSOjVxAtkZCsDoC7xjKuNKfzZ3by65p76LaxK++JfkIewJTYBbWr2MzhiSn+rUPUq5nTztfFGrcsaDc1WYpootYRqLjUMLpJ9M2XX6vXbarub9XTeIxnjapKvdtJtK1lmXxLjeBIdqmS0ZAwF3x2zM39hGFGMaXIGbLmljOgSvzGIC9NtKHu8H90gshZTCUY8Yukkus+CItyN9VH0udIwRnSSkviJyDA7OE6AlqDqIMJMyF4yIM0B6z8TK3Olxo7+nbSJTtufCLsp23ycpiA3zyjZaynB5LKmnZdPWU5vRdHb3wpMOYuKAtbx8g2zthZtyDA==; 5:MSfpgHBGuwWdSHFx3lIxrOpE/kxK2vfrrr+7azRaTysMquyyTFGcm3wXvLFRYp4VhaXIOIaZUc0jvTg7HEjXMA6lyx/Cr8MTkBDYl2x84Qz4SuoBa6xPcxecLbf8t+8cnNUaEb+OhShKu6q+w5oTSg==; 24:MnQlesE59pu+iztjjjEoxNmCNjswKm5MnMSY28EOsfxuQwyGtcAFv4b4gi1bsNpvL1iZCYQpcUmWsVI1DTbEG9nRxLPHNGK3Tg4U/AABi44=; 7:12lws8Q30oIOx+SYFwL4zZfKZAxDOzpwZV2X3fmI8hA1ilCDSGXw4fVapBhmv0VRzPQ/wlUHcUBGkEkjJiWD4FT3yXwAJttjywre/qENON8uMN9vDd2W8k5BgvhUL0n3a8jPP/DTp1VvIkV2Wt/fBQbXfxOAW/Etcu24fEvU+A4enNKOmOVmVe2Iri2vT3GGkAHErREYgbZMSNav4xgh5GCrkwlrpp6tlZmHw8gmL2A= x-ms-exchange-antispam-srfa-diagnostics: SSOS; x-ms-office365-filtering-correlation-id: 053bf631-9916-4c3b-b7f3-08d5005abb2a x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(2017030254152)(300000503095)(300135400095)(2017052603199)(201703131423075)(201703031133081)(201702281549075)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095); SRVR:DM2PR07MB621; x-ms-traffictypediagnostic: DM2PR07MB621: x-exchange-antispam-report-test: UriScan:(788757137089)(21748063052155); x-microsoft-antispam-prvs: x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(2401047)(8121501046)(5005006)(100000703101)(100105400095)(93006095)(93001095)(3002001)(10201501046)(6041248)(20161123564025)(20161123562025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123555025)(20161123560025)(20161123558100)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:DM2PR07MB621; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:DM2PR07MB621; x-forefront-prvs: 04362AC73B x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(6009001)(376002)(346002)(199003)(189002)(450100002)(99286003)(316002)(86362001)(25786009)(105586002)(9326002)(106356001)(478600001)(97736004)(7736002)(5660300001)(2906002)(54896002)(9686003)(3280700002)(53936002)(110136005)(3660700001)(6306002)(74316002)(7696004)(2900100001)(55016002)(66066001)(6436002)(81156014)(81166006)(8676002)(14454004)(54356999)(5250100002)(2501003)(50986999)(6506006)(101416001)(8936002)(790700001)(33656002)(189998001)(6116002)(72206003)(102836003)(3846002)(68736007); DIR:OUT; SFP:1101; SCL:1; SRVR:DM2PR07MB621; H:DM2PR07MB1481.namprd07.prod.outlook.com; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; received-spf: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM MIME-Version: 1.0 X-OriginatorOrg: cavium.com X-MS-Exchange-CrossTenant-originalarrivaltime: 20 Sep 2017 19:06:42.8738 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM2PR07MB621 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Sep 2017 19:06:45 -0000 Hi, Am I correct that it is the following: 1. Delete any multicast addresses programmed in HW which are not pres= ent in ifp->if_multiaddrs. 2. Update the multicast addresses to be accepted by HW with those in = ifp->if_multiaddrs For SIOCADDMULTI, we skip #1. In either case ifp->if_multiaddrs contains the multicast addresses that ne= ed to be accepted by the interface. This means we can clear all the multica= st addresses programmed earlier and replace them with the ones in ifp->if_m= ultiaddrs for both SIOCDELMULTI and SIOCADDMULTI. Thanks David S.