Commit 29385de
i40e: Add and use helper to reconfigure TC for given VSI
Add helper i40e_vsi_reconfig_tc(vsi) that configures TC
for given VSI using previously stored TC bitmap.
Effectively replaces open-coded patterns:
enabled_tc = vsi->tc_config.enabled_tc;
vsi->tc_config.enabled_tc = 0;
i40e_vsi_config_tc(vsi, enabled_tc);
Reviewed-by: Michal Schmidt <mschmidt@redhat.com>
Tested-by: Pucha Himasekhar Reddy <himasekharx.reddy.pucha@intel.com>
Signed-off-by: Ivan Vecera <ivecera@redhat.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>1 parent 5509fc9 commit 29385de
1 file changed
Lines changed: 24 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5917 | 5917 | | |
5918 | 5918 | | |
5919 | 5919 | | |
| 5920 | + | |
| 5921 | + | |
| 5922 | + | |
| 5923 | + | |
| 5924 | + | |
| 5925 | + | |
| 5926 | + | |
| 5927 | + | |
| 5928 | + | |
| 5929 | + | |
| 5930 | + | |
| 5931 | + | |
| 5932 | + | |
| 5933 | + | |
| 5934 | + | |
| 5935 | + | |
| 5936 | + | |
| 5937 | + | |
| 5938 | + | |
| 5939 | + | |
| 5940 | + | |
| 5941 | + | |
5920 | 5942 | | |
5921 | 5943 | | |
5922 | 5944 | | |
| |||
14279 | 14301 | | |
14280 | 14302 | | |
14281 | 14303 | | |
14282 | | - | |
14283 | 14304 | | |
14284 | 14305 | | |
14285 | 14306 | | |
| |||
14312 | 14333 | | |
14313 | 14334 | | |
14314 | 14335 | | |
14315 | | - | |
14316 | | - | |
14317 | 14336 | | |
14318 | | - | |
| 14337 | + | |
14319 | 14338 | | |
14320 | 14339 | | |
14321 | 14340 | | |
| |||
15074 | 15093 | | |
15075 | 15094 | | |
15076 | 15095 | | |
15077 | | - | |
15078 | | - | |
15079 | | - | |
15080 | 15096 | | |
15081 | | - | |
| 15097 | + | |
15082 | 15098 | | |
15083 | 15099 | | |
15084 | 15100 | | |
| |||
0 commit comments