/linux-4.4.14/drivers/net/ethernet/intel/i40evf/ |
D | i40evf_ethtool.c | 633 static int i40evf_get_rxfh(struct net_device *netdev, u32 *indir, u8 *key, in i40evf_get_rxfh() argument 643 if (!indir) in i40evf_get_rxfh() 646 if (indir) { in i40evf_get_rxfh() 649 indir[j++] = hlut_val & 0xff; in i40evf_get_rxfh() 650 indir[j++] = (hlut_val >> 8) & 0xff; in i40evf_get_rxfh() 651 indir[j++] = (hlut_val >> 16) & 0xff; in i40evf_get_rxfh() 652 indir[j++] = (hlut_val >> 24) & 0xff; in i40evf_get_rxfh() 667 static int i40evf_set_rxfh(struct net_device *netdev, const u32 *indir, in i40evf_set_rxfh() argument 679 if (!indir) in i40evf_set_rxfh() 683 hlut_val = indir[j++]; in i40evf_set_rxfh() [all …]
|
/linux-4.4.14/fs/freevxfs/ |
D | vxfs_bmap.c | 88 u32 *indir; in vxfs_bmap_ext4() local 94 indir = (u32 *)buf->b_data; in vxfs_bmap_ext4() 95 bno = indir[(bn/indsize) % (indsize*bn)] + (bn%indsize); in vxfs_bmap_ext4() 128 vxfs_bmap_indir(struct inode *ip, long indir, int size, long block) in vxfs_bmap_indir() argument 139 indir + (i / VXFS_TYPED_PER_BLOCK(ip->i_sb))); in vxfs_bmap_indir()
|
/linux-4.4.14/net/core/ |
D | ethtool.c | 584 static int ethtool_copy_validate_indir(u32 *indir, void __user *useraddr, in ethtool_copy_validate_indir() argument 590 if (copy_from_user(indir, useraddr, size * sizeof(indir[0]))) in ethtool_copy_validate_indir() 595 if (indir[i] >= rx_rings->data) in ethtool_copy_validate_indir() 615 u32 *indir; in ethtool_get_rxfh_indir() local 641 indir = kcalloc(dev_size, sizeof(indir[0]), GFP_USER); in ethtool_get_rxfh_indir() 642 if (!indir) in ethtool_get_rxfh_indir() 645 ret = dev->ethtool_ops->get_rxfh(dev, indir, NULL, NULL); in ethtool_get_rxfh_indir() 651 indir, dev_size * sizeof(indir[0]))) in ethtool_get_rxfh_indir() 655 kfree(indir); in ethtool_get_rxfh_indir() 664 u32 *indir; in ethtool_set_rxfh_indir() local [all …]
|
/linux-4.4.14/drivers/net/ethernet/intel/fm10k/ |
D | fm10k_ethtool.c | 1029 static int fm10k_get_reta(struct net_device *netdev, u32 *indir) in fm10k_get_reta() argument 1034 if (!indir) in fm10k_get_reta() 1037 for (i = 0; i < FM10K_RETA_SIZE; i++, indir += 4) { in fm10k_get_reta() 1040 indir[0] = (reta << 24) >> 24; in fm10k_get_reta() 1041 indir[1] = (reta << 16) >> 24; in fm10k_get_reta() 1042 indir[2] = (reta << 8) >> 24; in fm10k_get_reta() 1043 indir[3] = (reta) >> 24; in fm10k_get_reta() 1049 static int fm10k_set_reta(struct net_device *netdev, const u32 *indir) in fm10k_set_reta() argument 1056 if (!indir) in fm10k_set_reta() 1062 if (indir[i] < rss_i) in fm10k_set_reta() [all …]
|
/linux-4.4.14/drivers/net/dsa/ |
D | bcm_sf2.h | 170 u32 indir, dir; \ 173 indir = reg_readl(priv, REG_DIR_DATA_READ); \ 175 return (u64)indir << 32 | dir; \
|
/linux-4.4.14/drivers/net/ethernet/amd/xgbe/ |
D | xgbe-ethtool.c | 511 static int xgbe_get_rxfh(struct net_device *netdev, u32 *indir, u8 *key, in xgbe_get_rxfh() argument 517 if (indir) { in xgbe_get_rxfh() 519 indir[i] = XGMAC_GET_BITS(pdata->rss_table[i], in xgbe_get_rxfh() 532 static int xgbe_set_rxfh(struct net_device *netdev, const u32 *indir, in xgbe_set_rxfh() argument 544 if (indir) { in xgbe_set_rxfh() 545 ret = hw_if->set_rss_lookup_table(pdata, indir); in xgbe_set_rxfh()
|
/linux-4.4.14/include/linux/ |
D | ethtool.h | 261 int (*get_rxfh)(struct net_device *, u32 *indir, u8 *key, 263 int (*set_rxfh)(struct net_device *, const u32 *indir,
|
/linux-4.4.14/drivers/net/ethernet/cavium/thunder/ |
D | nicvf_ethtool.c | 562 static int nicvf_get_rxfh(struct net_device *dev, u32 *indir, u8 *hkey, in nicvf_get_rxfh() argument 569 if (indir) { in nicvf_get_rxfh() 571 indir[idx] = rss->ind_tbl[idx]; in nicvf_get_rxfh() 583 static int nicvf_set_rxfh(struct net_device *dev, const u32 *indir, in nicvf_set_rxfh() argument 599 if (indir) { in nicvf_set_rxfh() 601 rss->ind_tbl[idx] = indir[idx]; in nicvf_set_rxfh()
|
/linux-4.4.14/drivers/net/ethernet/mellanox/mlx5/core/ |
D | en_ethtool.c | 687 static int mlx5e_get_rxfh(struct net_device *netdev, u32 *indir, u8 *key, in mlx5e_get_rxfh() argument 692 if (indir) in mlx5e_get_rxfh() 693 memcpy(indir, priv->params.indirection_rqt, in mlx5e_get_rxfh() 706 static int mlx5e_set_rxfh(struct net_device *dev, const u32 *indir, in mlx5e_set_rxfh() argument 720 if (indir) { in mlx5e_set_rxfh() 721 memcpy(priv->params.indirection_rqt, indir, in mlx5e_set_rxfh()
|
/linux-4.4.14/drivers/net/ethernet/intel/ixgbevf/ |
D | ethtool.c | 827 static int ixgbevf_get_rxfh(struct net_device *netdev, u32 *indir, u8 *key, in ixgbevf_get_rxfh() argument 840 if (indir) { in ixgbevf_get_rxfh() 844 indir[i] = adapter->rss_indir_tbl[i]; in ixgbevf_get_rxfh() 850 if (!indir && !key) in ixgbevf_get_rxfh() 854 if (indir) in ixgbevf_get_rxfh() 855 err = ixgbevf_get_reta_locked(&adapter->hw, indir, in ixgbevf_get_rxfh()
|
/linux-4.4.14/drivers/net/ethernet/sfc/ |
D | ethtool.c | 1089 static int efx_ethtool_get_rxfh(struct net_device *net_dev, u32 *indir, u8 *key, in efx_ethtool_get_rxfh() argument 1096 if (indir) in efx_ethtool_get_rxfh() 1097 memcpy(indir, efx->rx_indir_table, sizeof(efx->rx_indir_table)); in efx_ethtool_get_rxfh() 1101 static int efx_ethtool_set_rxfh(struct net_device *net_dev, const u32 *indir, in efx_ethtool_set_rxfh() argument 1110 if (!indir) in efx_ethtool_set_rxfh() 1113 return efx->type->rx_push_rss_config(efx, true, indir); in efx_ethtool_set_rxfh()
|
/linux-4.4.14/drivers/net/ethernet/cisco/enic/ |
D | enic_ethtool.c | 473 static int enic_get_rxfh(struct net_device *netdev, u32 *indir, u8 *hkey, in enic_get_rxfh() argument 487 static int enic_set_rxfh(struct net_device *netdev, const u32 *indir, in enic_set_rxfh() argument 493 indir) in enic_set_rxfh()
|
/linux-4.4.14/drivers/net/ethernet/emulex/benet/ |
D | be_ethtool.c | 1182 static int be_get_rxfh(struct net_device *netdev, u32 *indir, u8 *hkey, in be_get_rxfh() argument 1189 if (indir) { in be_get_rxfh() 1191 indir[i] = rss->rss_queue[i]; in be_get_rxfh() 1203 static int be_set_rxfh(struct net_device *netdev, const u32 *indir, in be_set_rxfh() argument 1214 if (indir) { in be_set_rxfh() 1218 j = indir[i]; in be_set_rxfh()
|
/linux-4.4.14/drivers/net/ethernet/intel/i40e/ |
D | i40e_ethtool.c | 2609 static int i40e_get_rxfh(struct net_device *netdev, u32 *indir, u8 *key, in i40e_get_rxfh() argument 2622 if (!indir) in i40e_get_rxfh() 2627 indir[j++] = reg_val & 0xff; in i40e_get_rxfh() 2628 indir[j++] = (reg_val >> 8) & 0xff; in i40e_get_rxfh() 2629 indir[j++] = (reg_val >> 16) & 0xff; in i40e_get_rxfh() 2630 indir[j++] = (reg_val >> 24) & 0xff; in i40e_get_rxfh() 2654 static int i40e_set_rxfh(struct net_device *netdev, const u32 *indir, in i40e_set_rxfh() argument 2667 if (!indir) in i40e_set_rxfh() 2671 reg_val = indir[j++]; in i40e_set_rxfh() 2672 reg_val |= indir[j++] << 8; in i40e_set_rxfh() [all …]
|
/linux-4.4.14/drivers/net/ethernet/intel/ixgbe/ |
D | ixgbe_ethtool.c | 2897 static void ixgbe_get_reta(struct ixgbe_adapter *adapter, u32 *indir) in ixgbe_get_reta() argument 2902 indir[i] = adapter->rss_indir_tbl[i]; in ixgbe_get_reta() 2905 static int ixgbe_get_rxfh(struct net_device *netdev, u32 *indir, u8 *key, in ixgbe_get_rxfh() argument 2913 if (indir) in ixgbe_get_rxfh() 2914 ixgbe_get_reta(adapter, indir); in ixgbe_get_rxfh() 2922 static int ixgbe_set_rxfh(struct net_device *netdev, const u32 *indir, in ixgbe_set_rxfh() argument 2933 if (indir) { in ixgbe_set_rxfh() 2944 if (indir[i] >= max_queues) in ixgbe_set_rxfh() 2948 adapter->rss_indir_tbl[i] = indir[i]; in ixgbe_set_rxfh()
|
/linux-4.4.14/drivers/net/ethernet/broadcom/bnxt/ |
D | bnxt_ethtool.c | 404 static int bnxt_get_rxfh(struct net_device *dev, u32 *indir, u8 *key, in bnxt_get_rxfh() argument 414 if (indir) in bnxt_get_rxfh() 416 indir[i] = le16_to_cpu(vnic->rss_table[i]); in bnxt_get_rxfh()
|
/linux-4.4.14/drivers/net/ethernet/intel/igb/ |
D | igb_ethtool.c | 2858 static int igb_get_rxfh(struct net_device *netdev, u32 *indir, u8 *key, in igb_get_rxfh() argument 2866 if (!indir) in igb_get_rxfh() 2869 indir[i] = adapter->rss_indir_tbl[i]; in igb_get_rxfh() 2909 static int igb_set_rxfh(struct net_device *netdev, const u32 *indir, in igb_set_rxfh() argument 2921 if (!indir) in igb_set_rxfh() 2938 if (indir[i] >= num_queues) in igb_set_rxfh() 2943 adapter->rss_indir_tbl[i] = indir[i]; in igb_set_rxfh()
|
/linux-4.4.14/drivers/net/ethernet/broadcom/bnx2x/ |
D | bnx2x_ethtool.c | 3425 static int bnx2x_get_rxfh(struct net_device *dev, u32 *indir, u8 *key, in bnx2x_get_rxfh() argument 3434 if (!indir) in bnx2x_get_rxfh() 3450 indir[i] = ind_table[i] - bp->fp->cl_id; in bnx2x_get_rxfh() 3455 static int bnx2x_set_rxfh(struct net_device *dev, const u32 *indir, in bnx2x_set_rxfh() argument 3468 if (!indir) in bnx2x_set_rxfh() 3481 bp->rss_conf_obj.ind_table[i] = indir[i] + bp->fp->cl_id; in bnx2x_set_rxfh()
|
/linux-4.4.14/Documentation/networking/ |
D | scaling.txt | 62 commands (--show-rxfh-indir and --set-rxfh-indir). Modifying the
|
/linux-4.4.14/drivers/net/ethernet/broadcom/ |
D | tg3.c | 12579 static int tg3_get_rxfh(struct net_device *dev, u32 *indir, u8 *key, u8 *hfunc) in tg3_get_rxfh() argument 12586 if (!indir) in tg3_get_rxfh() 12590 indir[i] = tp->rss_ind_tbl[i]; in tg3_get_rxfh() 12595 static int tg3_set_rxfh(struct net_device *dev, const u32 *indir, const u8 *key, in tg3_set_rxfh() argument 12608 if (!indir) in tg3_set_rxfh() 12612 tp->rss_ind_tbl[i] = indir[i]; in tg3_set_rxfh()
|