Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F177829117
D54885.1795378995.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
803 B
Referenced Files
None
Subscribers
None
D54885.1795378995.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
Sun, Nov 22, 8:23 PM (36 m, 21 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41915009
Default Alt Text
D54885.1795378995.diff (803 B)
Attached To
Mode
D54885: qlnxe: Fix setting unicast MAC filter of rx path
Attached
Detach File
Event Timeline