numam-dpdk/drivers/net/i40e
Yong Wang b734923ddc net/i40e: fix division by 0
In function i40e_vsi_config_tc_queue_mapping(), if 'enabled_tcmap' is 0,
'total_tc' might be 0. Then 'total_tc' might be used in a division
by 0 in "qpnum_per_tc = i40e_align_floor(vsi->nb_qps / total_tc)".

Fix it by changing 'total_tc' from 0 to 1 just as func
i40e_vsi_update_queue_mapping() does.

Fixes: 4861cde461 ("i40e: new poll mode driver")
Cc: stable@dpdk.org

Signed-off-by: Yong Wang <wang.yong19@zte.com.cn>
Acked-by: Jingjing Wu <jingjing.wu@intel.com>
2017-07-06 15:00:57 +02:00
..
base net/i40e/base: update base code info 2017-07-06 15:00:57 +02:00
i40e_ethdev_vf.c net/i40e/base: use new virtchnl header file 2017-07-06 15:00:56 +02:00
i40e_ethdev.c net/i40e: fix division by 0 2017-07-06 15:00:57 +02:00
i40e_ethdev.h net/i40e/base: use new virtchnl header file 2017-07-06 15:00:56 +02:00
i40e_fdir.c net/i40e: fix flow director for IPv6 2017-07-06 15:00:56 +02:00
i40e_flow.c net/i40e: fix flow director for IPv6 2017-07-06 15:00:56 +02:00
i40e_logs.h net/i40e: use dynamic log type for control logs 2017-04-05 13:48:45 +02:00
i40e_pf.c net/i40e/base: use new virtchnl header file 2017-07-06 15:00:56 +02:00
i40e_pf.h net/i40e/base: use new virtchnl header file 2017-07-06 15:00:56 +02:00
i40e_regs.h i40e: add EEPROM and registers dumping 2016-03-16 17:48:48 +01:00
i40e_rxtx_vec_altivec.c net/i40e: fix build on ppc64le 2017-04-20 10:21:59 +02:00
i40e_rxtx_vec_common.h eal: introduce macro for always inline 2017-06-06 17:21:55 +02:00
i40e_rxtx_vec_neon.c net/i40e: enable per-device packet type mapping 2017-04-19 15:37:37 +02:00
i40e_rxtx_vec_sse.c net/i40e: remove checks for SSE4 2017-07-04 14:39:18 +02:00
i40e_rxtx.c fix typos using codespell utility 2017-06-14 23:54:13 +02:00
i40e_rxtx.h net/i40e: enable per-device packet type mapping 2017-04-19 15:37:37 +02:00
Makefile net/i40e: remove checks for SSE4 2017-07-04 14:39:18 +02:00
rte_pmd_i40e_version.map net/i40e: get information about DDP profile 2017-07-06 15:00:56 +02:00
rte_pmd_i40e.c net/i40e: extended list of operations for DDP processing 2017-07-06 15:00:57 +02:00
rte_pmd_i40e.h net/i40e: extended list of operations for DDP processing 2017-07-06 15:00:57 +02:00