@@ -628,7 +628,7 @@ static int ncsi_rsp_handler_snfc(struct ncsi_request *nr)
628
628
static int ncsi_rsp_handler_oem_gma (struct ncsi_request * nr , int mfr_id )
629
629
{
630
630
struct ncsi_dev_priv * ndp = nr -> ndp ;
631
- struct sockaddr * saddr = & ndp -> pending_mac ;
631
+ struct sockaddr_storage * saddr = & ndp -> pending_mac ;
632
632
struct net_device * ndev = ndp -> ndev .dev ;
633
633
struct ncsi_rsp_oem_pkt * rsp ;
634
634
u32 mac_addr_off = 0 ;
@@ -644,11 +644,11 @@ static int ncsi_rsp_handler_oem_gma(struct ncsi_request *nr, int mfr_id)
644
644
else if (mfr_id == NCSI_OEM_MFR_INTEL_ID )
645
645
mac_addr_off = INTEL_MAC_ADDR_OFFSET ;
646
646
647
- saddr -> sa_family = ndev -> type ;
648
- memcpy (saddr -> sa_data , & rsp -> data [mac_addr_off ], ETH_ALEN );
647
+ saddr -> ss_family = ndev -> type ;
648
+ memcpy (saddr -> __data , & rsp -> data [mac_addr_off ], ETH_ALEN );
649
649
if (mfr_id == NCSI_OEM_MFR_BCM_ID || mfr_id == NCSI_OEM_MFR_INTEL_ID )
650
- eth_addr_inc (( u8 * ) saddr -> sa_data );
651
- if (!is_valid_ether_addr (( const u8 * ) saddr -> sa_data ))
650
+ eth_addr_inc (saddr -> __data );
651
+ if (!is_valid_ether_addr (saddr -> __data ))
652
652
return - ENXIO ;
653
653
654
654
/* Set the flag for GMA command which should only be called once */
@@ -1088,7 +1088,7 @@ static int ncsi_rsp_handler_netlink(struct ncsi_request *nr)
1088
1088
static int ncsi_rsp_handler_gmcma (struct ncsi_request * nr )
1089
1089
{
1090
1090
struct ncsi_dev_priv * ndp = nr -> ndp ;
1091
- struct sockaddr * saddr = & ndp -> pending_mac ;
1091
+ struct sockaddr_storage * saddr = & ndp -> pending_mac ;
1092
1092
struct net_device * ndev = ndp -> ndev .dev ;
1093
1093
struct ncsi_rsp_gmcma_pkt * rsp ;
1094
1094
int i ;
@@ -1105,15 +1105,15 @@ static int ncsi_rsp_handler_gmcma(struct ncsi_request *nr)
1105
1105
rsp -> addresses [i ][4 ], rsp -> addresses [i ][5 ]);
1106
1106
}
1107
1107
1108
- saddr -> sa_family = ndev -> type ;
1108
+ saddr -> ss_family = ndev -> type ;
1109
1109
for (i = 0 ; i < rsp -> address_count ; i ++ ) {
1110
1110
if (!is_valid_ether_addr (rsp -> addresses [i ])) {
1111
1111
netdev_warn (ndev , "NCSI: Unable to assign %pM to device\n" ,
1112
1112
rsp -> addresses [i ]);
1113
1113
continue ;
1114
1114
}
1115
- memcpy (saddr -> sa_data , rsp -> addresses [i ], ETH_ALEN );
1116
- netdev_warn (ndev , "NCSI: Will set MAC address to %pM\n" , saddr -> sa_data );
1115
+ memcpy (saddr -> __data , rsp -> addresses [i ], ETH_ALEN );
1116
+ netdev_warn (ndev , "NCSI: Will set MAC address to %pM\n" , saddr -> __data );
1117
1117
break ;
1118
1118
}
1119
1119
0 commit comments