mbox

[v1,0/4] fixes for queue resource free and code style

Message ID cover.1589442278.git.cloud.wangxiaoyun@huawei.com (mailing list archive)
Headers

Message

Wangxiaoyun (Cloud) May 14, 2020, 9:29 a.m. UTC
  This patch adds tx_queues and rx_queues non-null judgment before 
free tx or rx resources, because some app may set tx_queues or 
rx_queues to be null before call free resource interfaces, which 
may cause a segfault, adds pkt_len member update for dst_mbuf
when copy a mbuf to a new dst_mbuf, code style format rectification,
and adjusts the legality judgment order of RSS RETA table.

--
v1:
  - the queues resource free problem fixes
  - the pkt len updates of mbuf fixes
  - code style modification
  - optimize RSS RETA table updates

Xiaoyun wang (4):
  net/hinic: the queues resource free problem fixes
  net/hinic: the pkt len updates of mbuf fixes
  net/hinic: code style modification
  net/hinic: optimize RSS RETA table updates

 drivers/net/hinic/base/hinic_pmd_cmdq.h  |  2 +-
 drivers/net/hinic/base/hinic_pmd_hwif.c  |  2 +-
 drivers/net/hinic/base/hinic_pmd_nicio.c |  1 -
 drivers/net/hinic/hinic_pmd_ethdev.c     | 44 +++++++++++++++-----------------
 drivers/net/hinic/hinic_pmd_ethdev.h     | 12 +++++----
 drivers/net/hinic/hinic_pmd_rx.c         |  3 ++-
 drivers/net/hinic/hinic_pmd_tx.c         |  5 +++-
 7 files changed, 36 insertions(+), 33 deletions(-)