linux/drivers/net/ethernet/intel/ice/ice_repr.h
<<
>>
Prefs
   1/* SPDX-License-Identifier: GPL-2.0 */
   2/* Copyright (C) 2019-2021, Intel Corporation. */
   3
   4#ifndef _ICE_REPR_H_
   5#define _ICE_REPR_H_
   6
   7#include <net/dst_metadata.h>
   8#include "ice.h"
   9
  10struct ice_repr {
  11        struct ice_vsi *src_vsi;
  12        struct ice_vf *vf;
  13        struct ice_q_vector *q_vector;
  14        struct net_device *netdev;
  15        struct metadata_dst *dst;
  16};
  17
  18int ice_repr_add_for_all_vfs(struct ice_pf *pf);
  19void ice_repr_rem_from_all_vfs(struct ice_pf *pf);
  20
  21void ice_repr_start_tx_queues(struct ice_repr *repr);
  22void ice_repr_stop_tx_queues(struct ice_repr *repr);
  23
  24void ice_repr_set_traffic_vsi(struct ice_repr *repr, struct ice_vsi *vsi);
  25
  26struct ice_repr *ice_netdev_to_repr(struct net_device *netdev);
  27bool ice_is_port_repr_netdev(struct net_device *netdev);
  28#endif
  29