Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 20 Sep 2017 19:06:42 +0000
From:      "Somayajulu, David" <David.Somayajulu@cavium.com>
To:        "freebsd-net@freebsd.org" <freebsd-net@freebsd.org>, "freebsd-drivers@freebsd.org" <freebsd-drivers@freebsd.org>
Subject:   Semantics of SIOCDELMULTI from an Ethernet Driver Perspective
Message-ID:  <DM2PR07MB1481232B580725F1E67E8D66EE610@DM2PR07MB1481.namprd07.prod.outlook.com>

next in thread | raw e-mail | index | archive | help
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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?DM2PR07MB1481232B580725F1E67E8D66EE610>