/** * enum nfp_port_type - type of port NFP can switch traffic to * @NFP_PORT_INVALID: port is invalid, %NFP_PORT_PHYS_PORT transitions to this * state when port disappears because of FW fault or config * change * @NFP_PORT_PHYS_PORT: external NIC port * @NFP_PORT_PF_PORT: logical port of PCI PF * @NFP_PORT_VF_PORT: logical port of PCI VF
*/ enum nfp_port_type {
NFP_PORT_INVALID,
NFP_PORT_PHYS_PORT,
NFP_PORT_PF_PORT,
NFP_PORT_VF_PORT,
};
/** * enum nfp_port_flags - port flags (can be type-specific) * @NFP_PORT_CHANGED: port state has changed since last eth table refresh; * for NFP_PORT_PHYS_PORT, never set otherwise; must hold * rtnl_lock to clear
*/ enum nfp_port_flags {
NFP_PORT_CHANGED = 0,
};
/** * struct nfp_port - structure representing NFP port * @netdev: backpointer to associated netdev * @type: what port type does the entity represent * @flags: port flags * @tc_offload_cnt: number of active TC offloads, how offloads are counted * is not defined, use as a boolean * @app: backpointer to the app structure * @link_cb: callback when link status changed * @dl_port: devlink port structure * @eth_id: for %NFP_PORT_PHYS_PORT port ID in NFP enumeration scheme * @eth_forced: for %NFP_PORT_PHYS_PORT port is forced UP or DOWN, don't change * @eth_port: for %NFP_PORT_PHYS_PORT translated ETH Table port entry * @eth_stats: for %NFP_PORT_PHYS_PORT MAC stats if available * @speed_bitmap: for %NFP_PORT_PHYS_PORT supported speed bitmap * @pf_id: for %NFP_PORT_PF_PORT, %NFP_PORT_VF_PORT ID of the PCI PF (0-3) * @vf_id: for %NFP_PORT_VF_PORT ID of the PCI VF within @pf_id * @pf_split: for %NFP_PORT_PF_PORT %true if PCI PF has more than one vNIC * @pf_split_id:for %NFP_PORT_PF_PORT ID of PCI PF vNIC (valid if @pf_split) * @vnic: for %NFP_PORT_PF_PORT, %NFP_PORT_VF_PORT vNIC ctrl memory * @port_list: entry on pf's list of ports
*/ struct nfp_port { struct net_device *netdev; enum nfp_port_type type;
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.