|
56 | 56 | #include "ice_fdir.h"
|
57 | 57 | #include "ice_xsk.h"
|
58 | 58 | #include "ice_arfs.h"
|
| 59 | +#include "ice_lag.h" |
59 | 60 |
|
60 | 61 | #define ICE_BAR0 0
|
61 | 62 | #define ICE_REQ_DESC_MULTIPLE 32
|
@@ -453,6 +454,7 @@ struct ice_pf {
|
453 | 454 | __le64 nvm_phy_type_lo; /* NVM PHY type low */
|
454 | 455 | __le64 nvm_phy_type_hi; /* NVM PHY type high */
|
455 | 456 | struct ice_link_default_override_tlv link_dflt_override;
|
| 457 | + struct ice_lag *lag; /* Link Aggregation information */ |
456 | 458 | };
|
457 | 459 |
|
458 | 460 | struct ice_netdev_priv {
|
@@ -553,11 +555,31 @@ static inline struct ice_vsi *ice_get_ctrl_vsi(struct ice_pf *pf)
|
553 | 555 | return pf->vsi[pf->ctrl_vsi_idx];
|
554 | 556 | }
|
555 | 557 |
|
| 558 | +/** |
| 559 | + * ice_set_sriov_cap - enable SRIOV in PF flags |
| 560 | + * @pf: PF struct |
| 561 | + */ |
| 562 | +static inline void ice_set_sriov_cap(struct ice_pf *pf) |
| 563 | +{ |
| 564 | + if (pf->hw.func_caps.common_cap.sr_iov_1_1) |
| 565 | + set_bit(ICE_FLAG_SRIOV_CAPABLE, pf->flags); |
| 566 | +} |
| 567 | + |
| 568 | +/** |
| 569 | + * ice_clear_sriov_cap - disable SRIOV in PF flags |
| 570 | + * @pf: PF struct |
| 571 | + */ |
| 572 | +static inline void ice_clear_sriov_cap(struct ice_pf *pf) |
| 573 | +{ |
| 574 | + clear_bit(ICE_FLAG_SRIOV_CAPABLE, pf->flags); |
| 575 | +} |
| 576 | + |
556 | 577 | #define ICE_FD_STAT_CTR_BLOCK_COUNT 256
|
557 | 578 | #define ICE_FD_STAT_PF_IDX(base_idx) \
|
558 | 579 | ((base_idx) * ICE_FD_STAT_CTR_BLOCK_COUNT)
|
559 | 580 | #define ICE_FD_SB_STAT_IDX(base_idx) ICE_FD_STAT_PF_IDX(base_idx)
|
560 | 581 |
|
| 582 | +bool netif_is_ice(struct net_device *dev); |
561 | 583 | int ice_vsi_setup_tx_rings(struct ice_vsi *vsi);
|
562 | 584 | int ice_vsi_setup_rx_rings(struct ice_vsi *vsi);
|
563 | 585 | int ice_vsi_open_ctrl(struct ice_vsi *vsi);
|
|
0 commit comments