ice.h (f66756e0ead7a1e80fb53fe03ff1728bcc7600da) | ice.h (7aae80cef7ba4b5245d392e62de1ebf1fc035f49) |
---|---|
1/* SPDX-License-Identifier: GPL-2.0 */ 2/* Copyright (c) 2018, Intel Corporation. */ 3 4#ifndef _ICE_H_ 5#define _ICE_H_ 6 7#include <linux/types.h> 8#include <linux/errno.h> --- 602 unchanged lines hidden (view full) --- 611{ 612 if (pf->vsi) 613 return pf->vsi[0]; 614 615 return NULL; 616} 617 618/** | 1/* SPDX-License-Identifier: GPL-2.0 */ 2/* Copyright (c) 2018, Intel Corporation. */ 3 4#ifndef _ICE_H_ 5#define _ICE_H_ 6 7#include <linux/types.h> 8#include <linux/errno.h> --- 602 unchanged lines hidden (view full) --- 611{ 612 if (pf->vsi) 613 return pf->vsi[0]; 614 615 return NULL; 616} 617 618/** |
619 * ice_get_netdev_priv_vsi - return VSI associated with netdev priv. 620 * @np: private netdev structure 621 */ 622static inline struct ice_vsi *ice_get_netdev_priv_vsi(struct ice_netdev_priv *np) 623{ 624 /* In case of port representor return source port VSI. */ 625 if (np->repr) 626 return np->repr->src_vsi; 627 else 628 return np->vsi; 629} 630 631/** |
|
619 * ice_get_ctrl_vsi - Get the control VSI 620 * @pf: PF instance 621 */ 622static inline struct ice_vsi *ice_get_ctrl_vsi(struct ice_pf *pf) 623{ 624 /* if pf->ctrl_vsi_idx is ICE_NO_VSI, control VSI was not set up */ 625 if (!pf->vsi || pf->ctrl_vsi_idx == ICE_NO_VSI) 626 return NULL; --- 38 unchanged lines hidden (view full) --- 665#define ICE_FD_SB_STAT_IDX(base_idx) ICE_FD_STAT_PF_IDX(base_idx) 666 667bool netif_is_ice(struct net_device *dev); 668int ice_vsi_setup_tx_rings(struct ice_vsi *vsi); 669int ice_vsi_setup_rx_rings(struct ice_vsi *vsi); 670int ice_vsi_open_ctrl(struct ice_vsi *vsi); 671int ice_vsi_open(struct ice_vsi *vsi); 672void ice_set_ethtool_ops(struct net_device *netdev); | 632 * ice_get_ctrl_vsi - Get the control VSI 633 * @pf: PF instance 634 */ 635static inline struct ice_vsi *ice_get_ctrl_vsi(struct ice_pf *pf) 636{ 637 /* if pf->ctrl_vsi_idx is ICE_NO_VSI, control VSI was not set up */ 638 if (!pf->vsi || pf->ctrl_vsi_idx == ICE_NO_VSI) 639 return NULL; --- 38 unchanged lines hidden (view full) --- 678#define ICE_FD_SB_STAT_IDX(base_idx) ICE_FD_STAT_PF_IDX(base_idx) 679 680bool netif_is_ice(struct net_device *dev); 681int ice_vsi_setup_tx_rings(struct ice_vsi *vsi); 682int ice_vsi_setup_rx_rings(struct ice_vsi *vsi); 683int ice_vsi_open_ctrl(struct ice_vsi *vsi); 684int ice_vsi_open(struct ice_vsi *vsi); 685void ice_set_ethtool_ops(struct net_device *netdev); |
686void ice_set_ethtool_repr_ops(struct net_device *netdev); |
|
673void ice_set_ethtool_safe_mode_ops(struct net_device *netdev); 674u16 ice_get_avail_txq_count(struct ice_pf *pf); 675u16 ice_get_avail_rxq_count(struct ice_pf *pf); 676int ice_vsi_recfg_qs(struct ice_vsi *vsi, int new_rx, int new_tx); 677void ice_update_vsi_stats(struct ice_vsi *vsi); 678void ice_update_pf_stats(struct ice_pf *pf); 679int ice_up(struct ice_vsi *vsi); 680int ice_down(struct ice_vsi *vsi); --- 65 unchanged lines hidden --- | 687void ice_set_ethtool_safe_mode_ops(struct net_device *netdev); 688u16 ice_get_avail_txq_count(struct ice_pf *pf); 689u16 ice_get_avail_rxq_count(struct ice_pf *pf); 690int ice_vsi_recfg_qs(struct ice_vsi *vsi, int new_rx, int new_tx); 691void ice_update_vsi_stats(struct ice_vsi *vsi); 692void ice_update_pf_stats(struct ice_pf *pf); 693int ice_up(struct ice_vsi *vsi); 694int ice_down(struct ice_vsi *vsi); --- 65 unchanged lines hidden --- |