Lines Matching refs:tc

974 	u8 tc;  in ixgbe_update_xoff_received()  local
999 tc = netdev_get_prio_tc_map(adapter->netdev, i); in ixgbe_update_xoff_received()
1000 xoff[tc] += pxoffrxc; in ixgbe_update_xoff_received()
1007 tc = tx_ring->dcb_tc; in ixgbe_update_xoff_received()
1008 if (xoff[tc]) in ixgbe_update_xoff_received()
4398 int link, tc, kb, marker; in ixgbe_hpbthresh() local
4402 tc = link = dev->mtu + ETH_HLEN + ETH_FCS_LEN + IXGBE_ETH_FRAMING; in ixgbe_hpbthresh()
4407 (tc < IXGBE_FCOE_JUMBO_FRAME_SIZE) && in ixgbe_hpbthresh()
4409 tc = IXGBE_FCOE_JUMBO_FRAME_SIZE; in ixgbe_hpbthresh()
4417 dv_id = IXGBE_DV_X540(link, tc); in ixgbe_hpbthresh()
4420 dv_id = IXGBE_DV(link, tc); in ixgbe_hpbthresh()
4426 dv_id += IXGBE_B2BT(tc); in ixgbe_hpbthresh()
4442 marker = tc + 1; in ixgbe_hpbthresh()
4458 int tc; in ixgbe_lpbthresh() local
4462 tc = dev->mtu + ETH_HLEN + ETH_FCS_LEN; in ixgbe_lpbthresh()
4467 (tc < IXGBE_FCOE_JUMBO_FRAME_SIZE) && in ixgbe_lpbthresh()
4469 tc = IXGBE_FCOE_JUMBO_FRAME_SIZE; in ixgbe_lpbthresh()
4477 dv_id = IXGBE_LOW_DV_X540(tc); in ixgbe_lpbthresh()
4480 dv_id = IXGBE_LOW_DV(tc); in ixgbe_lpbthresh()
4517 u8 tc = netdev_get_num_tc(adapter->netdev); in ixgbe_configure_pb() local
4525 hw->mac.ops.set_rxpba(hw, tc, hdrm, PBA_STRATEGY_EQUAL); in ixgbe_configure_pb()
5299 struct tc_configuration *tc; in ixgbe_sw_init() local
5401 tc = &adapter->dcb_cfg.tc_config[j]; in ixgbe_sw_init()
5402 tc->path[DCB_TX_CONFIG].bwg_id = 0; in ixgbe_sw_init()
5403 tc->path[DCB_TX_CONFIG].bwg_percent = 12 + (j & 1); in ixgbe_sw_init()
5404 tc->path[DCB_RX_CONFIG].bwg_id = 0; in ixgbe_sw_init()
5405 tc->path[DCB_RX_CONFIG].bwg_percent = 12 + (j & 1); in ixgbe_sw_init()
5406 tc->dcb_pfc = pfc_disabled; in ixgbe_sw_init()
5410 tc = &adapter->dcb_cfg.tc_config[0]; in ixgbe_sw_init()
5411 tc->path[DCB_TX_CONFIG].up_to_tc_bitmap = 0xFF; in ixgbe_sw_init()
5412 tc->path[DCB_RX_CONFIG].up_to_tc_bitmap = 0xFF; in ixgbe_sw_init()
7839 static void ixgbe_validate_rtr(struct ixgbe_adapter *adapter, u8 tc) in ixgbe_validate_rtr() argument
7858 if (up2tc > tc) in ixgbe_validate_rtr()
7882 u8 tc = 0; in ixgbe_set_prio_tc_map() local
7885 tc = ixgbe_dcb_get_tc_from_up(dcb_cfg, 0, prio); in ixgbe_set_prio_tc_map()
7887 tc = ets->prio_tc[prio]; in ixgbe_set_prio_tc_map()
7889 netdev_set_prio_tc_map(dev, prio, tc); in ixgbe_set_prio_tc_map()
7900 int ixgbe_setup_tc(struct net_device *dev, u8 tc) in ixgbe_setup_tc() argument
7907 if (tc > adapter->dcb_cfg.num_tcs.pg_tcs) in ixgbe_setup_tc()
7910 if (hw->mac.type == ixgbe_mac_82598EB && tc && tc < MAX_TRAFFIC_CLASS) in ixgbe_setup_tc()
7914 if (tc && pools && adapter->num_rx_pools > IXGBE_MAX_DCBMACVLANS) in ixgbe_setup_tc()
7929 if (tc) { in ixgbe_setup_tc()
7930 netdev_set_num_tc(dev, tc); in ixgbe_setup_tc()
7951 ixgbe_validate_rtr(adapter, tc); in ixgbe_setup_tc()