ixgbe: Clarify index name in ixgbe_mc_filter_apply
"It looks like it would be less confusing to rename 'count' to something like 'idx', since that's what it's used for in this function." Reviewed by: erj MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D29798
This commit is contained in:
parent
86046cf55f
commit
21afed4b1d
@ -3262,15 +3262,15 @@ ixgbe_config_delay_values(struct adapter *adapter)
|
|||||||
* Called whenever multicast address list is updated.
|
* Called whenever multicast address list is updated.
|
||||||
************************************************************************/
|
************************************************************************/
|
||||||
static u_int
|
static u_int
|
||||||
ixgbe_mc_filter_apply(void *arg, struct sockaddr_dl *sdl, u_int count)
|
ixgbe_mc_filter_apply(void *arg, struct sockaddr_dl *sdl, u_int idx)
|
||||||
{
|
{
|
||||||
struct adapter *adapter = arg;
|
struct adapter *adapter = arg;
|
||||||
struct ixgbe_mc_addr *mta = adapter->mta;
|
struct ixgbe_mc_addr *mta = adapter->mta;
|
||||||
|
|
||||||
if (count == MAX_NUM_MULTICAST_ADDRESSES)
|
if (idx == MAX_NUM_MULTICAST_ADDRESSES)
|
||||||
return (0);
|
return (0);
|
||||||
bcopy(LLADDR(sdl), mta[count].addr, IXGBE_ETH_LENGTH_OF_ADDRESS);
|
bcopy(LLADDR(sdl), mta[idx].addr, IXGBE_ETH_LENGTH_OF_ADDRESS);
|
||||||
mta[count].vmdq = adapter->pool;
|
mta[idx].vmdq = adapter->pool;
|
||||||
|
|
||||||
return (1);
|
return (1);
|
||||||
} /* ixgbe_mc_filter_apply */
|
} /* ixgbe_mc_filter_apply */
|
||||||
|
Loading…
Reference in New Issue
Block a user