@@ -3092,7 +3092,7 @@ static int ice_xdp_safe_mode(struct net_device __always_unused *dev,
3092
3092
* @dev: netdevice
3093
3093
* @xdp: XDP command
3094
3094
*/
3095
- static int ice_xdp (struct net_device * dev , struct netdev_bpf * xdp )
3095
+ int ice_xdp (struct net_device * dev , struct netdev_bpf * xdp )
3096
3096
{
3097
3097
struct ice_netdev_priv * np = netdev_priv (dev );
3098
3098
struct ice_vsi * vsi = np -> vsi ;
@@ -3558,26 +3558,6 @@ static int ice_req_irq_msix_misc(struct ice_pf *pf)
3558
3558
return 0 ;
3559
3559
}
3560
3560
3561
- /**
3562
- * ice_napi_add - register NAPI handler for the VSI
3563
- * @vsi: VSI for which NAPI handler is to be registered
3564
- *
3565
- * This function is only called in the driver's load path. Registering the NAPI
3566
- * handler is done in ice_vsi_alloc_q_vector() for all other cases (i.e. resume,
3567
- * reset/rebuild, etc.)
3568
- */
3569
- static void ice_napi_add (struct ice_vsi * vsi )
3570
- {
3571
- int v_idx ;
3572
-
3573
- if (!vsi -> netdev )
3574
- return ;
3575
-
3576
- ice_for_each_q_vector (vsi , v_idx )
3577
- netif_napi_add (vsi -> netdev , & vsi -> q_vectors [v_idx ]-> napi ,
3578
- ice_napi_poll );
3579
- }
3580
-
3581
3561
/**
3582
3562
* ice_set_ops - set netdev and ethtools ops for the given netdev
3583
3563
* @vsi: the VSI associated with the new netdev
@@ -3611,7 +3591,7 @@ static void ice_set_ops(struct ice_vsi *vsi)
3611
3591
* ice_set_netdev_features - set features for the given netdev
3612
3592
* @netdev: netdev instance
3613
3593
*/
3614
- static void ice_set_netdev_features (struct net_device * netdev )
3594
+ void ice_set_netdev_features (struct net_device * netdev )
3615
3595
{
3616
3596
struct ice_pf * pf = ice_netdev_to_pf (netdev );
3617
3597
bool is_dvm_ena = ice_is_dvm_ena (& pf -> hw );
@@ -3793,8 +3773,7 @@ ice_lb_vsi_setup(struct ice_pf *pf, struct ice_port_info *pi)
3793
3773
*
3794
3774
* net_device_ops implementation for adding VLAN IDs
3795
3775
*/
3796
- static int
3797
- ice_vlan_rx_add_vid (struct net_device * netdev , __be16 proto , u16 vid )
3776
+ int ice_vlan_rx_add_vid (struct net_device * netdev , __be16 proto , u16 vid )
3798
3777
{
3799
3778
struct ice_netdev_priv * np = netdev_priv (netdev );
3800
3779
struct ice_vsi_vlan_ops * vlan_ops ;
@@ -3856,8 +3835,7 @@ ice_vlan_rx_add_vid(struct net_device *netdev, __be16 proto, u16 vid)
3856
3835
*
3857
3836
* net_device_ops implementation for removing VLAN IDs
3858
3837
*/
3859
- static int
3860
- ice_vlan_rx_kill_vid (struct net_device * netdev , __be16 proto , u16 vid )
3838
+ int ice_vlan_rx_kill_vid (struct net_device * netdev , __be16 proto , u16 vid )
3861
3839
{
3862
3840
struct ice_netdev_priv * np = netdev_priv (netdev );
3863
3841
struct ice_vsi_vlan_ops * vlan_ops ;
@@ -7127,7 +7105,6 @@ void ice_update_pf_stats(struct ice_pf *pf)
7127
7105
* @netdev: network interface device structure
7128
7106
* @stats: main device statistics structure
7129
7107
*/
7130
- static
7131
7108
void ice_get_stats64 (struct net_device * netdev , struct rtnl_link_stats64 * stats )
7132
7109
{
7133
7110
struct ice_netdev_priv * np = netdev_priv (netdev );
@@ -7804,7 +7781,7 @@ static void ice_rebuild(struct ice_pf *pf, enum ice_reset_req reset_type)
7804
7781
*
7805
7782
* Returns 0 on success, negative on failure
7806
7783
*/
7807
- static int ice_change_mtu (struct net_device * netdev , int new_mtu )
7784
+ int ice_change_mtu (struct net_device * netdev , int new_mtu )
7808
7785
{
7809
7786
struct ice_netdev_priv * np = netdev_priv (netdev );
7810
7787
struct ice_vsi * vsi = np -> vsi ;
@@ -8228,7 +8205,7 @@ ice_bridge_setlink(struct net_device *dev, struct nlmsghdr *nlh,
8228
8205
* @netdev: network interface device structure
8229
8206
* @txqueue: Tx queue
8230
8207
*/
8231
- static void ice_tx_timeout (struct net_device * netdev , unsigned int txqueue )
8208
+ void ice_tx_timeout (struct net_device * netdev , unsigned int txqueue )
8232
8209
{
8233
8210
struct ice_netdev_priv * np = netdev_priv (netdev );
8234
8211
struct ice_tx_ring * tx_ring = NULL ;
0 commit comments