net/qede/base: make API non-static
Move ecore_set_fw_mac_addr from ecore_l2.c to ecore_dev.c to facilitate future code reuse. Signed-off-by: Rasesh Mody <rasesh.mody@cavium.com>
This commit is contained in:
parent
93fce9045f
commit
e0685050ff
@ -811,6 +811,8 @@ int ecore_configure_pf_min_bandwidth(struct ecore_dev *p_dev, u8 min_bw);
|
|||||||
void ecore_clean_wfq_db(struct ecore_hwfn *p_hwfn, struct ecore_ptt *p_ptt);
|
void ecore_clean_wfq_db(struct ecore_hwfn *p_hwfn, struct ecore_ptt *p_ptt);
|
||||||
int ecore_device_num_engines(struct ecore_dev *p_dev);
|
int ecore_device_num_engines(struct ecore_dev *p_dev);
|
||||||
int ecore_device_num_ports(struct ecore_dev *p_dev);
|
int ecore_device_num_ports(struct ecore_dev *p_dev);
|
||||||
|
void ecore_set_fw_mac_addr(__le16 *fw_msb, __le16 *fw_mid, __le16 *fw_lsb,
|
||||||
|
u8 *mac);
|
||||||
|
|
||||||
#define ECORE_LEADING_HWFN(dev) (&dev->hwfns[0])
|
#define ECORE_LEADING_HWFN(dev) (&dev->hwfns[0])
|
||||||
|
|
||||||
|
@ -4297,3 +4297,16 @@ int ecore_device_num_ports(struct ecore_dev *p_dev)
|
|||||||
|
|
||||||
return p_dev->num_ports_in_engines * ecore_device_num_engines(p_dev);
|
return p_dev->num_ports_in_engines * ecore_device_num_engines(p_dev);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void ecore_set_fw_mac_addr(__le16 *fw_msb,
|
||||||
|
__le16 *fw_mid,
|
||||||
|
__le16 *fw_lsb,
|
||||||
|
u8 *mac)
|
||||||
|
{
|
||||||
|
((u8 *)fw_msb)[0] = mac[1];
|
||||||
|
((u8 *)fw_msb)[1] = mac[0];
|
||||||
|
((u8 *)fw_mid)[0] = mac[3];
|
||||||
|
((u8 *)fw_mid)[1] = mac[2];
|
||||||
|
((u8 *)fw_lsb)[0] = mac[5];
|
||||||
|
((u8 *)fw_lsb)[1] = mac[4];
|
||||||
|
}
|
||||||
|
@ -1012,17 +1012,6 @@ ecore_filter_action(enum ecore_filter_opcode opcode)
|
|||||||
return action;
|
return action;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void ecore_set_fw_mac_addr(__le16 *fw_msb,
|
|
||||||
__le16 *fw_mid, __le16 *fw_lsb, u8 *mac)
|
|
||||||
{
|
|
||||||
((u8 *)fw_msb)[0] = mac[1];
|
|
||||||
((u8 *)fw_msb)[1] = mac[0];
|
|
||||||
((u8 *)fw_mid)[0] = mac[3];
|
|
||||||
((u8 *)fw_mid)[1] = mac[2];
|
|
||||||
((u8 *)fw_lsb)[0] = mac[5];
|
|
||||||
((u8 *)fw_lsb)[1] = mac[4];
|
|
||||||
}
|
|
||||||
|
|
||||||
static enum _ecore_status_t
|
static enum _ecore_status_t
|
||||||
ecore_filter_ucast_common(struct ecore_hwfn *p_hwfn,
|
ecore_filter_ucast_common(struct ecore_hwfn *p_hwfn,
|
||||||
u16 opaque_fid,
|
u16 opaque_fid,
|
||||||
|
Loading…
Reference in New Issue
Block a user