Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F157514691
D29798.id87577.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
894 B
Referenced Files
None
Subscribers
None
D29798.id87577.diff
View Options
Index: sys/dev/ixgbe/if_ix.c
===================================================================
--- sys/dev/ixgbe/if_ix.c
+++ sys/dev/ixgbe/if_ix.c
@@ -3262,15 +3262,15 @@
* Called whenever multicast address list is updated.
************************************************************************/
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 ixgbe_mc_addr *mta = adapter->mta;
- if (count == MAX_NUM_MULTICAST_ADDRESSES)
+ if (idx == MAX_NUM_MULTICAST_ADDRESSES)
return (0);
- bcopy(LLADDR(sdl), mta[count].addr, IXGBE_ETH_LENGTH_OF_ADDRESS);
- mta[count].vmdq = adapter->pool;
+ bcopy(LLADDR(sdl), mta[idx].addr, IXGBE_ETH_LENGTH_OF_ADDRESS);
+ mta[idx].vmdq = adapter->pool;
return (1);
} /* ixgbe_mc_filter_apply */
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, May 23, 6:59 AM (7 h, 4 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
33442889
Default Alt Text
D29798.id87577.diff (894 B)
Attached To
Mode
D29798: ixgbe: Clarify variable index usage in ixgbe_mc_filter_apply
Attached
Detach File
Event Timeline
Log In to Comment