1. 15 Dec, 2018 2 commits
    • liuzhongzhu's avatar
      net: hns3: Add "manager table" information query function · 7737f1fb
      liuzhongzhu authored
      This patch prints manager table information.
      
      debugfs command:
      echo dump mng tbl > cmd
      
      Sample Command:
      root@(none)# echo dump mng tbl > cmd
       entry|mac_addr         |mask|ether|mask|vlan|mask|i_map|i_dir|e_type
       00   |01:00:5e:00:00:01|0   |00000|0   |0000|0   |00   |00   |0
       01   |c2:f1:c5:82:68:17|0   |00000|0   |0000|0   |00   |00   |0
      root@(none)#
      Signed-off-by: default avatarliuzhongzhu <liuzhongzhu@huawei.com>
      Signed-off-by: default avatarSalil Mehta <salil.mehta@huawei.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      7737f1fb
    • liuzhongzhu's avatar
      net: hns3: Add "bd info" query function · 122bedc5
      liuzhongzhu authored
      This patch prints Sending and receiving
      package descriptor information.
      
      debugfs command:
      echo dump bd info 1 > cmd
      
      Sample Command:
      root@(none)# echo bd info 1 > cmd
      hns3 0000:7d:00.0: TX Queue Num: 0, BD Index: 0
      hns3 0000:7d:00.0: (TX) addr: 0x0
      hns3 0000:7d:00.0: (TX)vlan_tag: 0
      hns3 0000:7d:00.0: (TX)send_size: 0
      hns3 0000:7d:00.0: (TX)vlan_tso: 0
      hns3 0000:7d:00.0: (TX)l2_len: 0
      hns3 0000:7d:00.0: (TX)l3_len: 0
      hns3 0000:7d:00.0: (TX)l4_len: 0
      hns3 0000:7d:00.0: (TX)vlan_tag: 0
      hns3 0000:7d:00.0: (TX)tv: 0
      hns3 0000:7d:00.0: (TX)vlan_msec: 0
      hns3 0000:7d:00.0: (TX)ol2_len: 0
      hns3 0000:7d:00.0: (TX)ol3_len: 0
      hns3 0000:7d:00.0: (TX)ol4_len: 0
      hns3 0000:7d:00.0: (TX)paylen: 0
      hns3 0000:7d:00.0: (TX)vld_ra_ri: 0
      hns3 0000:7d:00.0: (TX)mss: 0
      hns3 0000:7d:00.0: RX Queue Num: 0, BD Index: 120
      hns3 0000:7d:00.0: (RX)addr: 0xffee7000
      hns3 0000:7d:00.0: (RX)pkt_len: 0
      hns3 0000:7d:00.0: (RX)size: 0
      hns3 0000:7d:00.0: (RX)rss_hash: 0
      hns3 0000:7d:00.0: (RX)fd_id: 0
      hns3 0000:7d:00.0: (RX)vlan_tag: 0
      hns3 0000:7d:00.0: (RX)o_dm_vlan_id_fb: 0
      hns3 0000:7d:00.0: (RX)ot_vlan_tag: 0
      hns3 0000:7d:00.0: (RX)bd_base_info: 0
      Signed-off-by: default avatarliuzhongzhu <liuzhongzhu@huawei.com>
      Signed-off-by: default avatarSalil Mehta <salil.mehta@huawei.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      122bedc5
  2. 14 Dec, 2018 32 commits
  3. 13 Dec, 2018 6 commits
    • David S. Miller's avatar
      Merge tag 'mlx5e-updates-2018-12-11' of git://git.kernel.org/pub/scm/linux/kernel/git/saeed/linux · 95302c39
      David S. Miller authored
      Saeed Mahameed says:
      
      ====================
      mlx5e-updates-2018-12-11
      
      From Eli Britstein,
      Patches 1-10 adds remote mirroring support.
      Patches 1-4 refactor encap related code as pre-steps for using per
      destination encapsulation properties.
      Patches 5-7 use extended destination feature for single/multi
      destination scenarios that have a single encap destination.
      Patches 8-10 enable multiple encap destinations for a TC flow.
      
      From, Daniel Jurgens,
      Patch 11, Use CQE padding for Ethernet CQs, PPC showed up to a 24%
      improvement in small packet throughput
      
      From Eyal Davidovich,
      patches 12-14, FW monitor counter support
      FW monitor counters feature came to solve the delayed reporting of
      FW stats in the atomic get_stats64 ndo, since we can't access the
      FW at that stage, this feature will enable immediate FW stats updates
      in the driver via fw events on specific stats updates.
      
      Patch 12, cleanup to avoid querying a FW counter when it is not
      supported
      Patch 13, Monitor counters FW commands support
      Patch 14, Use monitor counters in ethernet netdevice to update FW
      stats reported in the atomic get_stats64 ndo.
      ====================
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      95302c39
    • Biao Huang's avatar
      net-next: stmmac: dwmac-mediatek: add module license info · 43d4b297
      Biao Huang authored
      Add MODULE_LICENSE info to fix this:
      WARNING: modpost: missing MODULE_LICENSE() in drivers/net/ethernet/stmicro/stmmac/dwmac-mediatek.o
      Signed-off-by: default avatarBiao Huang <biao.huang@mediatek.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      43d4b297
    • YueHaibing's avatar
      net/mlx5e: Remove set but not used variable 'upriv' · c784a28b
      YueHaibing authored
      Fixes gcc '-Wunused-but-set-variable' warning:
      
      drivers/net/ethernet/mellanox/mlx5/core/en_rep.c: In function 'mlx5e_vport_rep_load':
      drivers/net/ethernet/mellanox/mlx5/core/en_rep.c:1490:21: warning:
       variable 'upriv' set but not used [-Wunused-but-set-variable]
      
      drivers/net/ethernet/mellanox/mlx5/core/en_rep.c: In function 'mlx5e_vport_rep_unload':
      drivers/net/ethernet/mellanox/mlx5/core/en_rep.c:1557:21: warning:
       variable 'upriv' set but not used [-Wunused-but-set-variable]
      
      It not used any more since commit ef381359 ("net/mlx5e: Replace egdev with
      indirect block notifications"). Also remove unused variable 'uplink_rpriv'
      after this change.
      Signed-off-by: default avatarYueHaibing <yuehaibing@huawei.com>
      Reviewed-by: default avatarLeon Romanovsky <leonro@mellanox.com>
      Acked-by: default avatarSaeed Mahameed <saeedm@mellanox.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      c784a28b
    • David S. Miller's avatar
      Merge branch 'Pass-extack-to-SWITCHDEV_PORT_OBJ_ADD' · 02e1dbe4
      David S. Miller authored
      Petr Machata says:
      
      ====================
      Pass extack to SWITCHDEV_PORT_OBJ_ADD
      
      Drivers may need to do validation as a result of port object addition.
      An example is mlxsw, which needs to check the configuration of a VXLAN
      device attached to an offloaded bridge. Without a mapped VLAN, the
      invalidity of the device is not important, but as soon as a pvid,
      untagged VLAN is configured for the device, it has to be validated and
      offloaded. Should the validation fail, there's currently no way to
      communicate details of the failure to the user, beyond an error number.
      
      Because currently, extack is not available at all in that area of code,
      this patch starts down at the RTNL level and progresses up towards the
      driver(s).
      
      In patch #1, ndo_bridge_setlink is updated to include extack, and
      callbacks of all clients are updated as well (ignoring the argument).
      
      In patch #2, the bridge driver is updated to propagate the extack
      through to the switchdev border, br_switchdev_port_vlan_add().
      
      Patches #3, #4 and #5 then gradually extend switchdev to pass the extack
      argument through to the switchdev blocking notifier chain.
      
      Patches #6 and #7 then update mlxsw to pass the extack argument from
      VXLAN events resp. port events on to mlxsw_sp_bridge_8021q_vxlan_join().
      
      Finally in patches #8 and #9, the code paths from the previous two
      patches are verified to yield an error message.
      
      v2:
      - Patch #1:
          - In ndo_bridge_setlink(), keep the whole extack declaration on the
            same line.
      ====================
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      02e1dbe4
    • Petr Machata's avatar
      selftests: mlxsw: extack: Test VLAN add on a port device · 06a2fc8f
      Petr Machata authored
      Test mapping a VLAN at a port device such that on the same VLAN, there
      already is an unoffloadable VXLAN device.
      Signed-off-by: default avatarPetr Machata <petrm@mellanox.com>
      Acked-by: default avatarJiri Pirko <jiri@mellanox.com>
      Reviewed-by: default avatarIdo Schimmel <idosch@mellanox.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      06a2fc8f
    • Petr Machata's avatar
      selftests: mlxsw: extack: Test VLAN add on a VXLAN device · b498dc7d
      Petr Machata authored
      Test mapping a VLAN at a VXLAN device that can't be offloaded.
      Signed-off-by: default avatarPetr Machata <petrm@mellanox.com>
      Acked-by: default avatarJiri Pirko <jiri@mellanox.com>
      Reviewed-by: default avatarIdo Schimmel <idosch@mellanox.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      b498dc7d