mirror of https://gitee.com/openkylin/linux.git
i40e: track id can be 0
track_id == 0 is valid for “read only” profiles when profile does not have any “write” commands. Signed-off-by: Jingjing Wu <jingjing.wu@intel.com> Tested-by: Andrew Bowers <andrewx.bowers@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
This commit is contained in:
parent
329e598368
commit
0794fedcef
|
@ -5364,11 +5364,6 @@ i40e_write_profile(struct i40e_hw *hw, struct i40e_profile_segment *profile,
|
||||||
u32 offset = 0, info = 0;
|
u32 offset = 0, info = 0;
|
||||||
u32 i;
|
u32 i;
|
||||||
|
|
||||||
if (!track_id) {
|
|
||||||
i40e_debug(hw, I40E_DEBUG_PACKAGE, "Track_id can't be 0.");
|
|
||||||
return I40E_NOT_SUPPORTED;
|
|
||||||
}
|
|
||||||
|
|
||||||
dev_cnt = profile->device_table_count;
|
dev_cnt = profile->device_table_count;
|
||||||
|
|
||||||
for (i = 0; i < dev_cnt; i++) {
|
for (i = 0; i < dev_cnt; i++) {
|
||||||
|
|
|
@ -1330,11 +1330,6 @@ i40evf_write_profile(struct i40e_hw *hw, struct i40e_profile_segment *profile,
|
||||||
u32 offset = 0, info = 0;
|
u32 offset = 0, info = 0;
|
||||||
u32 i;
|
u32 i;
|
||||||
|
|
||||||
if (!track_id) {
|
|
||||||
i40e_debug(hw, I40E_DEBUG_PACKAGE, "Track_id can't be 0.");
|
|
||||||
return I40E_NOT_SUPPORTED;
|
|
||||||
}
|
|
||||||
|
|
||||||
dev_cnt = profile->device_table_count;
|
dev_cnt = profile->device_table_count;
|
||||||
|
|
||||||
for (i = 0; i < dev_cnt; i++) {
|
for (i = 0; i < dev_cnt; i++) {
|
||||||
|
|
Loading…
Reference in New Issue