Lines Matching refs:tc
960 u8 tc; in ixgbe_update_xoff_received() local
985 tc = netdev_get_prio_tc_map(adapter->netdev, i); in ixgbe_update_xoff_received()
986 xoff[tc] += pxoffrxc; in ixgbe_update_xoff_received()
993 tc = tx_ring->dcb_tc; in ixgbe_update_xoff_received()
994 if (xoff[tc]) in ixgbe_update_xoff_received()
4288 int link, tc, kb, marker; in ixgbe_hpbthresh() local
4292 tc = link = dev->mtu + ETH_HLEN + ETH_FCS_LEN + IXGBE_ETH_FRAMING; in ixgbe_hpbthresh()
4297 (tc < IXGBE_FCOE_JUMBO_FRAME_SIZE) && in ixgbe_hpbthresh()
4299 tc = IXGBE_FCOE_JUMBO_FRAME_SIZE; in ixgbe_hpbthresh()
4307 dv_id = IXGBE_DV_X540(link, tc); in ixgbe_hpbthresh()
4310 dv_id = IXGBE_DV(link, tc); in ixgbe_hpbthresh()
4316 dv_id += IXGBE_B2BT(tc); in ixgbe_hpbthresh()
4332 marker = tc + 1; in ixgbe_hpbthresh()
4348 int tc; in ixgbe_lpbthresh() local
4352 tc = dev->mtu + ETH_HLEN + ETH_FCS_LEN; in ixgbe_lpbthresh()
4357 (tc < IXGBE_FCOE_JUMBO_FRAME_SIZE) && in ixgbe_lpbthresh()
4359 tc = IXGBE_FCOE_JUMBO_FRAME_SIZE; in ixgbe_lpbthresh()
4367 dv_id = IXGBE_LOW_DV_X540(tc); in ixgbe_lpbthresh()
4370 dv_id = IXGBE_LOW_DV(tc); in ixgbe_lpbthresh()
4407 u8 tc = netdev_get_num_tc(adapter->netdev); in ixgbe_configure_pb() local
4415 hw->mac.ops.set_rxpba(hw, tc, hdrm, PBA_STRATEGY_EQUAL); in ixgbe_configure_pb()
5200 struct tc_configuration *tc; in ixgbe_sw_init() local
5301 tc = &adapter->dcb_cfg.tc_config[j]; in ixgbe_sw_init()
5302 tc->path[DCB_TX_CONFIG].bwg_id = 0; in ixgbe_sw_init()
5303 tc->path[DCB_TX_CONFIG].bwg_percent = 12 + (j & 1); in ixgbe_sw_init()
5304 tc->path[DCB_RX_CONFIG].bwg_id = 0; in ixgbe_sw_init()
5305 tc->path[DCB_RX_CONFIG].bwg_percent = 12 + (j & 1); in ixgbe_sw_init()
5306 tc->dcb_pfc = pfc_disabled; in ixgbe_sw_init()
5310 tc = &adapter->dcb_cfg.tc_config[0]; in ixgbe_sw_init()
5311 tc->path[DCB_TX_CONFIG].up_to_tc_bitmap = 0xFF; in ixgbe_sw_init()
5312 tc->path[DCB_RX_CONFIG].up_to_tc_bitmap = 0xFF; in ixgbe_sw_init()
7629 static void ixgbe_validate_rtr(struct ixgbe_adapter *adapter, u8 tc) in ixgbe_validate_rtr() argument
7648 if (up2tc > tc) in ixgbe_validate_rtr()
7672 u8 tc = 0; in ixgbe_set_prio_tc_map() local
7675 tc = ixgbe_dcb_get_tc_from_up(dcb_cfg, 0, prio); in ixgbe_set_prio_tc_map()
7677 tc = ets->prio_tc[prio]; in ixgbe_set_prio_tc_map()
7679 netdev_set_prio_tc_map(dev, prio, tc); in ixgbe_set_prio_tc_map()
7690 int ixgbe_setup_tc(struct net_device *dev, u8 tc) in ixgbe_setup_tc() argument
7697 if (tc > adapter->dcb_cfg.num_tcs.pg_tcs || in ixgbe_setup_tc()
7699 tc < MAX_TRAFFIC_CLASS)) in ixgbe_setup_tc()
7703 if (tc && pools && adapter->num_rx_pools > IXGBE_MAX_DCBMACVLANS) in ixgbe_setup_tc()
7715 if (tc) { in ixgbe_setup_tc()
7716 netdev_set_num_tc(dev, tc); in ixgbe_setup_tc()
7737 ixgbe_validate_rtr(adapter, tc); in ixgbe_setup_tc()