net/ice/base: correct argument port info
authorQi Zhang <qi.z.zhang@intel.com>
Thu, 29 Aug 2019 02:36:00 +0000 (10:36 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 7 Oct 2019 13:00:53 +0000 (15:00 +0200)
commit03ac4b8d1151de62c2d2be5d5e6881e4d9649126
treea32dfe3107fc200cdb152659049c95132d9b5fd1
parent5d0b7b5fc4912cfbcaa4fd2e7faa796dc3e445f7
net/ice/base: correct argument port info

correct argument pi(port_info) passed in function
ice_sched_get_first_node(), otherwise it will return the incorrect
node.

functions ice_sched_get_agg_node and ice_sched_cfg_sibl_node_prio:
change argument from hw to pi for it to align to correct port.

Moved saving tc node bw info from hardware structure(hw) to port info
structure(pi). This change allows multiple ports to save and replay
the information correctly.

Signed-off-by: Tarun Singh <tarun.k.singh@intel.com>
Signed-off-by: Paul M Stillwell Jr <paul.m.stillwell.jr@intel.com>
Signed-off-by: Qi Zhang <qi.z.zhang@intel.com>
Acked-by: Xiaolong Ye <xiaolong.ye@intel.com>
drivers/net/ice/base/ice_common.c
drivers/net/ice/base/ice_common.h
drivers/net/ice/base/ice_sched.c
drivers/net/ice/base/ice_sched.h
drivers/net/ice/base/ice_type.h