1. 09 Jul, 2018 7 commits
  2. 08 Jul, 2018 26 commits
  3. 07 Jul, 2018 7 commits
    • Colin Ian King's avatar
      drivers: net: lmc: remove redundant variable next_rx · 005c1c0e
      Colin Ian King authored
      Variable next_rx is being assigned but is never used hence it is
      redundant and can be removed.
      
      Cleans up clang warning:
      warning: variable 'next_rx' set but not used [-Wunused-but-set-variable]
      Signed-off-by: default avatarColin Ian King <colin.king@canonical.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      005c1c0e
    • David S. Miller's avatar
      Merge branch 'cpsw-allow-PTP-224.0.0.107-to-be-timestamped' · 676dce64
      David S. Miller authored
      Ivan Khoronzhuk says:
      
      ====================
      allow PTP 224.0.0.107 to be timestamped
      
      Allows packets with 224.0.0.107 mcas address for PTP packets to be timestamped.
      Only for cpsw version > v1.15.
      ====================
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      676dce64
    • Ivan Khoronzhuk's avatar
      net: ethernet: ti: cpsw: allow PTP 224.0.0.107 to be timestamped · 1c0e8123
      Ivan Khoronzhuk authored
      Tested on AM572x with cpsw v1.15 for PTP sync and delay_req messages.
      It doesn't work on cpsw v1.12, so added only for cpsw v > 1.15.
      
      Command for testing:
      ptp4l -P -4 -H -i eth0 -l 6 -m -q -p /dev/ptp0 -f ptp.cfg
      where ptp.cfg:
      
      [global]
      tx_timestamp_timeout     20
      Signed-off-by: default avatarIvan Khoronzhuk <ivan.khoronzhuk@linaro.org>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      1c0e8123
    • Ivan Khoronzhuk's avatar
      net: ethernet: ti: cpsw: use BIT macro · 1239a96a
      Ivan Khoronzhuk authored
      It's needed to avoid checkpatch warnings for farther changes.
      Signed-off-by: default avatarIvan Khoronzhuk <ivan.khoronzhuk@linaro.org>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      1239a96a
    • Arnd Bergmann's avatar
      stmmac: fix signed 64-bit division · 8f704ef6
      Arnd Bergmann authored
      I link error on 32-bit ARM points to yet another arithmetic bug:
      
      drivers/net/ethernet/stmicro/stmmac/stmmac_tc.o: In function `tc_setup_cbs':
      stmmac_tc.c:(.text+0x148): undefined reference to `__aeabi_uldivmod'
      stmmac_tc.c:(.text+0x1fc): undefined reference to `__aeabi_uldivmod'
      stmmac_tc.c:(.text+0x308): undefined reference to `__aeabi_uldivmod'
      stmmac_tc.c:(.text+0x320): undefined reference to `__aeabi_uldivmod'
      stmmac_tc.c:(.text+0x33c): undefined reference to `__aeabi_uldivmod'
      drivers/net/ethernet/stmicro/stmmac/stmmac_tc.o:stmmac_tc.c:(.text+0x3a4): more undefined references to `__aeabi_uldivmod' follow
      
      I observe that the last change to add the 'ul' prefix was incorrect,
      as it did not turn the result of the multiplication into a 64-bit
      expression on 32-bit architectures. Further, it seems that the
      do_div() macro gets confused by the fact that we pass a signed
      variable rather than unsigned into it.
      
      This changes the code to instead use the div_s64() helper that is
      meant for signed division, along with changing the constant suffix
      to 'll' to actually make it a 64-bit argument everywhere, fixing
      both of the issues I pointed out.
      
      I'm not completely convinced that this makes the code correct, but
      I'm fairly sure that we have two problems less than before.
      
      Fixes: 1f705bc6 ("net: stmmac: Add support for CBS QDISC")
      Fixes: c18a9c09 ("net: stmmac_tc: use 64-bit arithmetic instead of 32-bit")
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      Acked-by: default avatarGustavo A. R. Silva <gustavo@embeddedor.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      8f704ef6
    • Jon Maloy's avatar
      tipc: extend link reset criteria for stale packet retransmission · a4dc70d4
      Jon Maloy authored
      Currently a link is declared stale and reset if there has been 100
      repeated attempts to retransmit the same packet. However, in certain
      infrastructures we see that packet (NACK) duplicates and delays may
      cause such retransmit attempts to occur at a high rate, so that the
      peer doesn't have a reasonable chance to acknowledge the reception
      before the 100-limit is hit. This may take much less than the
      stipulated link tolerance time, and despite that probe/probe replies
      otherwise go through as normal.
      
      We now extend the criteria for link reset to also being time based.
      I.e., we don't reset the link until the link tolerance time is passed
      AND we have made 100 retransmissions attempts.
      Acked-by: default avatarYing Xue <ying.xue@windriver.com>
      Signed-off-by: default avatarJon Maloy <jon.maloy@ericsson.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      a4dc70d4
    • David S. Miller's avatar
      Merge branch 'Introduce-matching-on-double-vlan-QinQ-headers-for-TC-flower' · 4af4f7e8
      David S. Miller authored
      Jianbo Liu says:
      
      ====================
      Introduce matching on double vlan/QinQ headers for TC flower
      
      Currently TC flower supports only one vlan tag, it doesn't match on both outer
      and inner vlan headers for QinQ. To do this, we add support to get both outer
      and inner vlan headers for flow dissector, and then TC flower do matching on
      those information.
      
      We also plan to extend TC command to support this feature. We add new
      cvlan_id/cvlan_prio/cvlan_ethtype keywords for inner vlan header. The existing
      vlan_id/vlan_prio/vlan_ethtype are for outer vlan header, and vlan_ethtype must
      be 802.1q or 802.1ad.
      
      The examples for command and output are as the following.
              flower vlan_id 1000 vlan_ethtype 802.1q \
              cvlan_id 100 cvlan_ethtype ipv4 \
              action vlan pop \
              action vlan pop \
              action mirred egress redirect dev ens1f1_0
      
      filter protocol 802.1ad pref 33 flower chain 0
      filter protocol 802.1ad pref 33 flower chain 0 handle 0x1
        vlan_id 1000
        vlan_ethtype 802.1Q
        cvlan_id 100
        cvlan_ethtype ip
        eth_type ipv4
        in_hw
          ...
      
      v2:
        fix sparse warning.
      ====================
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      4af4f7e8