Skip to content
Permalink
Joseph-CHANG/A…
Switch branches/tags

Commits on Dec 8, 2021

  1. net: Add DM9051 driver

    Add davicom dm9051 SPI ethernet driver. The driver work with some
    parameters, such as:
    
     - spi bus number
    
     - spi chip select
    
     - spi clock frequency
    
     - interrupt gpio pin
    
    Interrupt polarity fixed to low.
    Test OK with Raspberry Pi 2 and Pi 4 as well for its broadcom CPUs.
    This driver can work to many other CPUs too, since it independently
    uses the lower spi control functions that are provided from the CPU
    vendors.
    
    Signed-off-by: Joseph CHANG <josright123@gmail.com>
    josright123 authored and intel-lab-lkp committed Dec 8, 2021
  2. yaml: Add dm9051 SPI network yaml file

    For support davicom dm9051 device tree configuration
    
    Signed-off-by: Joseph CHANG <josright123@gmail.com>
    josright123 authored and intel-lab-lkp committed Dec 8, 2021

Commits on Dec 4, 2021

  1. Merge branch 'qed-enhancements'

    Manish Chopra says:
    
    ====================
    qed*: enhancements
    
    This series adds below enhancements for qed/qede drivers
    
    patch 1: Improves tx timeout debug data logs.
    patch 2: Add ESL(Enhanced system lockdown) priv flag cap/status support.
    
    v2:
    * Fixed cosmetic issues in both patches
    * Added ESL feature description in patch #2
    
    Please consider applying it to "net-next"
    ====================
    
    Link: https://lore.kernel.org/r/20211202210157.25530-1-manishc@marvell.com
    Signed-off-by: Jakub Kicinski <kuba@kernel.org>
    Jakub Kicinski committed Dec 4, 2021
  2. qed*: esl priv flag support through ethtool

    ESL(Enhanced System Lockdown) was designed to lock PCI adapter firmware
    images and prevent changes to critical non-volatile configuration data
    so that uncontrolled, malicious or unintentional modification to the
    adapters are avoided, ensuring it's operational state. Once this feature is
    enabled, the device is locked, rejecting any modification to non-volatile
    images. Once unlocked, the protection is off such that firmware and
    non-volatile configurations may be altered.
    
    Driver just reflects the capability and status of this through
    the ethtool private flag.
    
    Signed-off-by: Manish Chopra <manishc@marvell.com>
    Signed-off-by: Prabhakar Kushwaha <pkushwaha@marvell.com>
    Signed-off-by: Alok Prasad <palok@marvell.com>
    Signed-off-by: Ariel Elior <aelior@marvell.com>
    Signed-off-by: Jakub Kicinski <kuba@kernel.org>
    manishc88 authored and Jakub Kicinski committed Dec 4, 2021
  3. qed*: enhance tx timeout debug info

    This patch add some new qed APIs to query status block
    info and report various data to MFW on tx timeout event
    
    Along with that it enhances qede to dump more debug logs
    (not just specific to the queue which was reported by stack)
    on tx timeout which includes various other basic metadata about
    all tx queues and other info (like status block etc.)
    
    Signed-off-by: Manish Chopra <manishc@marvell.com>
    Signed-off-by: Prabhakar Kushwaha <pkushwaha@marvell.com>
    Signed-off-by: Alok Prasad <palok@marvell.com>
    Signed-off-by: Ariel Elior <aelior@marvell.com>
    Signed-off-by: Jakub Kicinski <kuba@kernel.org>
    manishc88 authored and Jakub Kicinski committed Dec 4, 2021

Commits on Dec 3, 2021

  1. net: lan966x: fix a IS_ERR() vs NULL check in lan966x_create_targets()

    The devm_ioremap() function does not return error pointers.  It returns
    NULL.
    
    Fixes: db8bcaa ("net: lan966x: add the basic lan966x driver")
    Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
    Reviewed-by: Horatiu Vultur <horatiu.vultur@microchip.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    error27 authored and davem330 committed Dec 3, 2021
  2. net: prestera: acl: fix return value check in prestera_acl_rule_entry…

    …_find()
    
    rhashtable_lookup_fast() returns NULL pointer not ERR_PTR().
    Return rhashtable_lookup_fast() directly to fix this.
    
    Fixes: 47327e1 ("net: prestera: acl: migrate to new vTCAM api")
    Reported-by: Hulk Robot <hulkci@huawei.com>
    Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    Yang Yingliang authored and davem330 committed Dec 3, 2021
  3. net: dsa: vsc73xxx: Get rid of duplicate of_node assignment

    GPIO library does copy the of_node from the parent device of
    the GPIO chip, there is no need to repeat this in the individual
    drivers. Remove assignment here.
    
    For the details one may look into the of_gpio_dev_init() implementation.
    
    Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
    Reviewed-by: Vladimir Oltean <olteanv@gmail.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    andy-shev authored and davem330 committed Dec 3, 2021
  4. net/sched: act_ct: Offload only ASSURED connections

    Short-lived connections increase the insertion rate requirements,
    fill the offload table and provide very limited offload value since
    they process a very small amount of packets. The ct ASSURED flag is
    designed to filter short-lived connections for early expiration.
    
    Offload connections when they are ESTABLISHED and ASSURED.
    
    Signed-off-by: Chris Mi <cmi@nvidia.com>
    Reviewed-by: Oz Shlomo <ozsh@nvidia.com>
    Reviewed-by: Roi Dayan <roid@nvidia.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    Chris Mi authored and davem330 committed Dec 3, 2021
  5. Merge branch 'hns3-cleanups'

    Guangbin Huang says:
    
    ====================
    net: hns3: some cleanups for -next
    
    To improve code readability and simplicity, this series add some cleanup
    patches for the HNS3 ethernet driver.
    ====================
    
    Signed-off-by: David S. Miller <davem@davemloft.net>
    davem330 committed Dec 3, 2021
  6. net: hns3: fix hns3 driver header file not self-contained issue

    The hns3 driver header file uses the structure of other files, but does
    not include corresponding file, which causes a check warning that the
    header file is not self-contained.
    
    Therefore, the required header file is included in the header file, and
    the structure declaration is added to the header file to avoid cyclic
    dependency of the header file.
    
    Signed-off-by: Jie Wang <wangjie125@huawei.com>
    Signed-off-by: Guangbin Huang <huangguangbin2@huawei.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    Jie Wang authored and davem330 committed Dec 3, 2021
  7. net: hns3: replace one tab with space in for statement

    Replace one tab with space between symbol ')' and '{' in for statement of
    function hclge_map_tqp().
    
    Signed-off-by: Hao Chen <chenhao288@hisilicon.com>
    Signed-off-by: Guangbin Huang <huangguangbin2@huawei.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    Hao Chen authored and davem330 committed Dec 3, 2021
  8. net: hns3: remove rebundant line for hclge_dbg_dump_tm_pg()

    Return value judgment should follow the function call, so remove line
    between them.
    
    Signed-off-by: Hao Chen <chenhao288@hisilicon.com>
    Signed-off-by: Guangbin Huang <huangguangbin2@huawei.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    Hao Chen authored and davem330 committed Dec 3, 2021
  9. net: hns3: add comments for hclge_dbg_fill_content()

    When we use hclge_dbg_fill_content() to fill contents with
    specific format according to struct hclge_dbg_item *items,
    it may cause content cover due to unreasonable items.
    
    So add comments to explain how to avoid it.
    
    Signed-off-by: Hao Chen <chenhao288@hisilicon.com>
    Signed-off-by: Guangbin Huang <huangguangbin2@huawei.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    Hao Chen authored and davem330 committed Dec 3, 2021
  10. net: hns3: add void before function which don't receive ret

    Add void before function which don't receive ret to improve code
    readability.
    
    Signed-off-by: Hao Chen <chenhao288@hisilicon.com>
    Signed-off-by: Guangbin Huang <huangguangbin2@huawei.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    Hao Chen authored and davem330 committed Dec 3, 2021
  11. net: hns3: align return value type of atomic_read() with its output

    Change output value type of atomic_read() from %u to %d.
    
    Signed-off-by: Hao Chen <chenhao288@hisilicon.com>
    Signed-off-by: Guangbin Huang <huangguangbin2@huawei.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    Hao Chen authored and davem330 committed Dec 3, 2021
  12. net: hns3: modify one argument type of function hclge_ncl_config_data…

    …_print
    
    The argument len will not be changed in hclge_ncl_config_data_print(), it
    is no need to declare as a pointer, so modify it into int type.
    
    Signed-off-by: Guangbin Huang <huangguangbin2@huawei.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    Guangbin Huang authored and davem330 committed Dec 3, 2021
  13. net: hns3: Align type of some variables with their print type

    The c language has a set of implicit type conversions, when
    two variables perform bitwise or arithmetic operations.
    
    For example, variable A (type u16/u8) -1, its output is int type variable.
    u16/u8 will convert to int type implicitly before it does arithmetic
    operations. So, change 1 to unsigned type.
    
    Signed-off-by: Hao Chen <chenhao288@hisilicon.com>
    Signed-off-by: Guangbin Huang <huangguangbin2@huawei.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    Hao Chen authored and davem330 committed Dec 3, 2021
  14. net: hns3: add print vport id for failed message of vlan

    This patch adds print vport id when failed to get or set vlan
    filter parameters.
    
    Signed-off-by: Guangbin Huang <huangguangbin2@huawei.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    Guangbin Huang authored and davem330 committed Dec 3, 2021
  15. net: hns3: refactor function hclge_set_vlan_filter_hw

    Function hclge_set_vlan_filter_hw() is a bit too long, so add a new
    function hclge_need_update_port_vlan() to simplify code and improve
    code readability.
    
    Signed-off-by: Guangbin Huang <huangguangbin2@huawei.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    Guangbin Huang authored and davem330 committed Dec 3, 2021
  16. net: hns3: optimize function hclge_cfg_common_loopback()

    hclge_cfg_common_loopback() is a bit too long, so
    encapsulate hclge_cfg_common_loopback_cmd_send() and
    hclge_cfg_common_loopback_wait() two functions to
    improve readability.
    
    Signed-off-by: Yufeng Mo <moyufeng@huawei.com>
    Signed-off-by: Guangbin Huang <huangguangbin2@huawei.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    Yufeng Mo authored and davem330 committed Dec 3, 2021
  17. Merge tag 'mlx5-updates-2021-12-02' of git://git.kernel.org/pub/scm/l…

    …inux/kernel/git/saeed/linux
    
    Saeed Mahameed says:
    
    ====================
    mlx5-updates-2021-12-02
    
    Misc updates to mlx5 driver
    
    1) Various code cleanups
    2) Error path handling fixes of latest features
    3) Print more information on pci error handling
    4) Dynamically resize flow counters query buffer
    ====================
    
    Link: https://lore.kernel.org/r/20211203005622.183325-1-saeed@kernel.org
    Signed-off-by: Jakub Kicinski <kuba@kernel.org>
    Jakub Kicinski committed Dec 3, 2021
  18. net/mlx5: Dynamically resize flow counters query buffer

    The flow counters bulk query buffer is allocated once during
    mlx5_fc_init_stats(). For PFs and VFs this buffer usually takes a little
    more than 512KB of memory, which is aligned to the next power of 2, to
    1MB. For SFs, this buffer is reduced and takes around 128 Bytes.
    
    The buffer size determines the maximum number of flow counters that
    can be queried at a time. Thus, having a bigger buffer can improve
    performance for users that need to query many flow counters.
    
    There are cases that don't use many flow counters and don't need a big
    buffer (e.g. SFs, VFs). Since this size is critical with large scale,
    in these cases the buffer size should be reduced.
    
    In order to reduce memory consumption while maintaining query
    performance, change the query buffer's allocation scheme to the
    following:
    - First allocate the buffer with small initial size.
    - If the number of counters surpasses the initial size, resize the
      buffer to the maximum size.
    
    The buffer only grows and isn't shrank, because users with many flow
    counters don't care about the buffer size and we don't want to add
    resize overhead if the current number of counters drops.
    
    This solution is preferable to the current one, which is less accurate
    and only addresses SFs.
    
    Signed-off-by: Avihai Horon <avihaih@nvidia.com>
    Reviewed-by: Mark Bloch <mbloch@nvidia.com>
    Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
    avihai1122 authored and Saeed Mahameed committed Dec 3, 2021
  19. net/mlx5e: TC, Set flow attr ip_version earlier

    Setting flow attr ip_version is not related to parsing tc flow actions.
    It needs to be set after parsing flower matches which changes the spec.
    So move it outside parse_tc_fdb_actions() and set it in
    __mlx5e_add_fdb_flow().
    
    Signed-off-by: Roi Dayan <roid@nvidia.com>
    Reviewed-by: Oz Shlomo <ozsh@nvidia.com>
    Reviewed-by: Maor Dickman <maord@nvidia.com>
    Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
    roidayan authored and Saeed Mahameed committed Dec 3, 2021
  20. net/mlx5e: TC, Move common flow_action checks into function

    Remove duplicate checks on flow_action by using common function.
    
    Signed-off-by: Roi Dayan <roid@nvidia.com>
    Reviewed-by: Oz Shlomo <ozsh@nvidia.com>
    Reviewed-by: Maor Dickman <maord@nvidia.com>
    Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
    roidayan authored and Saeed Mahameed committed Dec 3, 2021
  21. net/mlx5e: Remove redundant actions arg from vlan push/pop funcs

    Passing actions is redundant and can be retrieved from flow attr.
    
    Signed-off-by: Roi Dayan <roid@nvidia.com>
    Reviewed-by: Oz Shlomo <ozsh@nvidia.com>
    Reviewed-by: Maor Dickman <maord@nvidia.com>
    Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
    roidayan authored and Saeed Mahameed committed Dec 3, 2021
  22. net/mlx5e: Remove redundant actions arg from validate_goto_chain()

    Passing actions is redundant and can be retrieved from flow.
    
    Signed-off-by: Roi Dayan <roid@nvidia.com>
    Reviewed-by: Oz Shlomo <ozsh@nvidia.com>
    Reviewed-by: Maor Dickman <maord@nvidia.com>
    Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
    roidayan authored and Saeed Mahameed committed Dec 3, 2021
  23. net/mlx5e: TC, Remove redundant action stack var

    Remove the action stack var from parse tc fdb actions
    and prase tc nic actions, use the flow attr action var directly.
    
    Signed-off-by: Roi Dayan <roid@nvidia.com>
    Reviewed-by: Oz Shlomo <ozsh@nvidia.com>
    Reviewed-by: Maor Dickman <maord@nvidia.com>
    Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
    roidayan authored and Saeed Mahameed committed Dec 3, 2021
  24. net/mlx5e: Hide function mlx5e_num_channels_changed

    No calls for mlx5e_num_channels_changed() out of en_main.c,
    turn it static and remove from header.
    Keep the wrapper function mlx5e_num_channels_changed_ctx exposed.
    
    Signed-off-by: Tariq Toukan <tariqt@nvidia.com>
    Reviewed-by: Aya Levin <ayal@nvidia.com>
    Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
    Tariq Toukan authored and Saeed Mahameed committed Dec 3, 2021
  25. net/mlx5e: SHAMPO, clean MLX5E_MAX_KLM_PER_WQE macro

    This commit reduces unused variable from MLX5E_MAX_KLM_PER_WQE macro that
    introduced by commit d7b896a ("net/mlx5e: Add support to klm_umr_wqe").
    
    Signed-off-by: Ben Ben-Ishay <benishay@nvidia.com>
    Reviewed-by: Tariq Toukan <tariqt@nvidia.com>
    Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
    ben-ishay authored and Saeed Mahameed committed Dec 3, 2021
  26. net/mlx5: Print more info on pci error handlers

    In case mlx5_pci_err_detected was called with state equals to
    pci_channel_io_perm_failure, the driver will never come back up.
    
    It is nice to know why the driver went to zombie land, so print some
    useful information on pci err handlers.
    
    Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
    Reviewed-by: Moshe Shemesh <moshe@nvidia.com>
    Saeed Mahameed committed Dec 3, 2021
  27. net/mlx5: SF, silence an uninitialized variable warning

    This code sometimes calls mlx5_sf_hw_table_hwc_init() when "ext_base_id"
    is uninitialized.  It's not used on that path, but it generates a static
    checker warning to pass uninitialized variables to another function.
    It may also generate runtime UBSan  warnings depending on if the
    mlx5_sf_hw_table_hwc_init() function is inlined or not.
    
    Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
    Reviewed-by: Leon Romanovsky <leonro@nvidia.com>
    Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
    error27 authored and Saeed Mahameed committed Dec 3, 2021
  28. net/mlx5: Fix some error handling paths in 'mlx5e_tc_add_fdb_flow()'

    All the error handling paths of 'mlx5e_tc_add_fdb_flow()' end to 'err_out'
    where 'flow_flag_set(flow, FAILED);' is called.
    
    All but the new error handling paths added by the commits given in the
    Fixes tag below.
    
    Fix these error handling paths and branch to 'err_out'.
    
    Fixes: 166f431 ("net/mlx5e: Add indirect tc offload of ovs internal port")
    Fixes: b16eb3c ("net/mlx5: Support internal port as decap route device")
    Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
    Reviewed-by: Roi Dayan <roid@nvidia.com>
    Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
    tititiou36 authored and Saeed Mahameed committed Dec 3, 2021
  29. net/mlx5: Fix error return code in esw_qos_create()

    Fix to return a negative error code from the error handling
    case instead of 0, as done elsewhere in this function.
    
    Fixes: 85c5f7c ("net/mlx5: E-switch, Create QoS on demand")
    Reported-by: Hulk Robot <hulkci@huawei.com>
    Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
    Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
    Wei Yongjun authored and Saeed Mahameed committed Dec 3, 2021
  30. mlx5: fix mlx5i_grp_sw_update_stats() stack usage

    The mlx5e_sw_stats structure has grown to the point of triggering
    a warning when put on the stack of a function:
    
    mlx5/core/ipoib/ipoib.c: In function 'mlx5i_grp_sw_update_stats':
    mlx5/core/ipoib/ipoib.c:136:1: error: the frame size of 1028 bytes is larger than 1024 bytes [-Werror=frame-larger-than=]
    
    In this case, only five of the structure members are actually set,
    so it's sufficient to have those as separate local variables.
    As en_rep.c uses 'struct rtnl_link_stats64' for this, just use
    the same one here for consistency.
    
    Signed-off-by: Arnd Bergmann <arnd@arndb.de>
    Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
    arndb authored and Saeed Mahameed committed Dec 3, 2021
Older