Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F154420741
D54885.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
803 B
Referenced Files
None
Subscribers
None
D54885.diff
View Options
diff --git a/sys/dev/qlnx/qlnxe/qlnx_os.c b/sys/dev/qlnx/qlnxe/qlnx_os.c
--- a/sys/dev/qlnx/qlnxe/qlnx_os.c
+++ b/sys/dev/qlnx/qlnxe/qlnx_os.c
@@ -7057,20 +7057,10 @@
int rc = 0;
uint8_t filter;
const if_t ifp = ha->ifp;
- const struct ifaddr *ifa;
- struct sockaddr_dl *sdl;
- ifa = if_getifaddr(ifp);
- if (if_gettype(ifp) == IFT_ETHER && ifa != NULL &&
- ifa->ifa_addr != NULL) {
- sdl = (struct sockaddr_dl *) ifa->ifa_addr;
-
- rc = qlnx_set_ucast_rx_mac(ha, ECORE_FILTER_REPLACE, LLADDR(sdl));
- } else {
- rc = qlnx_set_ucast_rx_mac(ha, ECORE_FILTER_REPLACE, ha->primary_mac);
- }
- if (rc)
- return rc;
+ rc = qlnx_set_ucast_rx_mac(ha, ECORE_FILTER_REPLACE, if_getlladdr(ifp));
+ if (rc)
+ return rc;
rc = qlnx_remove_all_mcast_mac(ha);
if (rc)
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Apr 29, 10:50 AM (7 h, 34 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28051693
Default Alt Text
D54885.diff (803 B)
Attached To
Mode
D54885: qlnxe: Fix setting unicast MAC filter of rx path
Attached
Detach File
Event Timeline
Log In to Comment