1. 09 10月, 2018 30 次提交
  2. 08 10月, 2018 4 次提交
    • T
      net: vhost: remove bad code line · abf1a08f
      Tonghao Zhang 提交于
      Signed-off-by: NTonghao Zhang <xiangxia.m.yue@gmail.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      abf1a08f
    • L
      net: sched: pie: fix coding style issues · ac4a02c5
      Leslie Monis 提交于
      Fix 5 warnings and 14 checks issued by checkpatch.pl:
      
      CHECK: Logical continuations should be on the previous line
      +	if ((q->vars.qdelay < q->params.target / 2)
      +	    && (q->vars.prob < MAX_PROB / 5))
      
      WARNING: line over 80 characters
      +		q->params.tupdate = usecs_to_jiffies(nla_get_u32(tb[TCA_PIE_TUPDATE]));
      
      CHECK: Blank lines aren't necessary after an open brace '{'
      +{
      +
      
      CHECK: braces {} should be used on all arms of this statement
      +			if (qlen < QUEUE_THRESHOLD)
      [...]
      +			else {
      [...]
      
      CHECK: Unbalanced braces around else statement
      +			else {
      
      CHECK: No space is necessary after a cast
      +	if (delta > (s32) (MAX_PROB / (100 / 2)) &&
      
      CHECK: Unnecessary parentheses around 'qdelay == 0'
      +	if ((qdelay == 0) && (qdelay_old == 0) && update_prob)
      
      CHECK: Unnecessary parentheses around 'qdelay_old == 0'
      +	if ((qdelay == 0) && (qdelay_old == 0) && update_prob)
      
      CHECK: Unnecessary parentheses around 'q->vars.prob == 0'
      +	if ((q->vars.qdelay < q->params.target / 2) &&
      +	    (q->vars.qdelay_old < q->params.target / 2) &&
      +	    (q->vars.prob == 0) &&
      +	    (q->vars.avg_dq_rate > 0))
      
      CHECK: Unnecessary parentheses around 'q->vars.avg_dq_rate > 0'
      +	if ((q->vars.qdelay < q->params.target / 2) &&
      +	    (q->vars.qdelay_old < q->params.target / 2) &&
      +	    (q->vars.prob == 0) &&
      +	    (q->vars.avg_dq_rate > 0))
      
      CHECK: Blank lines aren't necessary before a close brace '}'
      +
      +}
      
      CHECK: Comparison to NULL could be written "!opts"
      +	if (opts == NULL)
      
      CHECK: No space is necessary after a cast
      +			((u32) PSCHED_TICKS2NS(q->params.target)) /
      
      WARNING: line over 80 characters
      +	    nla_put_u32(skb, TCA_PIE_TUPDATE, jiffies_to_usecs(q->params.tupdate)) ||
      
      CHECK: Blank lines aren't necessary before a close brace '}'
      +
      +}
      
      CHECK: No space is necessary after a cast
      +		.delay		= ((u32) PSCHED_TICKS2NS(q->vars.qdelay)) /
      
      WARNING: Missing a blank line after declarations
      +	struct sk_buff *skb;
      +	skb = qdisc_dequeue_head(sch);
      
      WARNING: Missing a blank line after declarations
      +	struct pie_sched_data *q = qdisc_priv(sch);
      +	qdisc_reset_queue(sch);
      
      WARNING: Missing a blank line after declarations
      +	struct pie_sched_data *q = qdisc_priv(sch);
      +	q->params.tupdate = 0;
      Signed-off-by: NLeslie Monis <lesliemonis@gmail.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      ac4a02c5
    • G
      bnxt_en: Remove unnecessary unsigned integer comparison and initialize variable · 5fc7c12f
      Gustavo A. R. Silva 提交于
      There is no need to compare *val.vu32* with < 0 because
      such variable is of type u32 (32 bits, unsigned), making it
      impossible to hold a negative value. Fix this by removing
      such comparison.
      
      Also, initialize variable *max_val* to -1, just in case
      it is not initialized to either BNXT_MSIX_VEC_MAX or
      BNXT_MSIX_VEC_MIN_MAX before using it in a comparison
      with val.vu32 at line 159:
      
      	if (val.vu32 > max_val)
      
      Addresses-Coverity-ID: 1473915 ("Unsigned compared against 0")
      Addresses-Coverity-ID: 1473920 ("Uninitialized scalar variable")
      Signed-off-by: NGustavo A. R. Silva <gustavo@embeddedor.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      5fc7c12f
    • D
      Merge tag 'wireless-drivers-next-for-davem-2018-10-07' of... · 5057ef7f
      David S. Miller 提交于
      Merge tag 'wireless-drivers-next-for-davem-2018-10-07' of git://git.kernel.org/pub/scm/linux/kernel/git/kvalo/wireless-drivers-next
      
      Kalle Valo says:
      
      ====================
      wireless-drivers-next patches for 4.20
      
      Second set of patches for 4.20. Heavy refactoring on mt76 continues
      and the usual drivers in active development (iwlwifi, qtnfmac, ath10k)
      getting new features. And as always, fixes and cleanup all over.
      
      Major changes:
      
      mt76
      
      * more major refactoring to make it easier add new hardware support
      
      * more work on mt76x0e support
      
      * support for getting firmware version via ethtool
      
      * add mt7650 PCI ID
      
      iwlwifi
      
      * HE radiotap cleanup and improvements
      
      * reorder channel optimization for scans
      
      * bump the FW API version
      
      qtnfmac
      
      * fixes for 'iw' output: rates for enabled SGI, 'dump station'
      
      * expose more scan features to host: scan flush and dwell time
      
      * inform cfg80211 when OBSS is not supported by firmware
      
      wlcore
      
      * add support for optional wakeirq
      
      ath10k
      
      * retrieve MAC address from system firmware if provided
      
      * support extended board data download for dual-band QCA9984
      
      * extended per sta tx statistics support via debugfs
      
      * average ack rssi support for data frames
      
      * speed up QCA6174 and QCA9377 firmware download using diag Copy
        Engine
      
      * HTT High Latency mode support needed by SDIO and USB support
      
      * get STA power save state via debugfs
      
      ath9k
      
      * add reset functionality for airtime station debugfs file
      ====================
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      5057ef7f
  3. 07 10月, 2018 1 次提交
  4. 06 10月, 2018 5 次提交
    • K
      Merge tag 'mt76-for-kvalo-2018-10-05' of https://github.com/nbd168/wireless · 5580d810
      Kalle Valo 提交于
      mt76 patches for 4.20
      
      * unify code between mt76x0, mt76x2
      * mt76x0 fixes
      * another fix for rx buffer allocation regression on usb
      * move mt76x2 source files to mt76x2 folder
      * more work on mt76x0e support
      5580d810
    • K
      Merge tag 'iwlwifi-next-for-kalle-2018-10-06' of... · 2a455012
      Kalle Valo 提交于
      Merge tag 'iwlwifi-next-for-kalle-2018-10-06' of git://git.kernel.org/pub/scm/linux/kernel/git/iwlwifi/iwlwifi-next
      
      Third set of iwlwifi patches for 4.20
      
      * Fix for a race condition that caused the FW to crash;
      * HE radiotap cleanup and improvements;
      * Reorder channel optimization for scans;
      * Bumped the FW API version supported after the last API change for
        this release;
      * Debugging improvements;
      * A few bug fixes;
      * Some cleanups in preparation for a new implementation;
      * Other small improvements, cleanups and fixes.
      2a455012
    • G
      Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net · c1d84a1b
      Greg Kroah-Hartman 提交于
      Dave writes:
        "Networking fixes:
      
        1) Fix truncation of 32-bit right shift in bpf, from Jann Horn.
      
        2) Fix memory leak in wireless wext compat, from Stefan Seyfried.
      
        3) Use after free in cfg80211's reg_process_hint(), from Yu Zhao.
      
        4) Need to cancel pending work when unbinding in smsc75xx otherwise
           we oops, also from Yu Zhao.
      
        5) Don't allow enslaving a team device to itself, from Ido Schimmel.
      
        6) Fix backwards compat with older userspace for rtnetlink FDB dumps.
           From Mauricio Faria.
      
        7) Add validation of tc policy netlink attributes, from David Ahern.
      
        8) Fix RCU locking in rawv6_send_hdrinc(), from Wei Wang."
      
      * git://git.kernel.org/pub/scm/linux/kernel/git/davem/net: (26 commits)
        net: mvpp2: Extract the correct ethtype from the skb for tx csum offload
        ipv6: take rcu lock in rawv6_send_hdrinc()
        net: sched: Add policy validation for tc attributes
        rtnetlink: fix rtnl_fdb_dump() for ndmsg header
        yam: fix a missing-check bug
        net: bpfilter: Fix type cast and pointer warnings
        net: cxgb3_main: fix a missing-check bug
        bpf: 32-bit RSH verification must truncate input before the ALU op
        net: phy: phylink: fix SFP interface autodetection
        be2net: don't flip hw_features when VXLANs are added/deleted
        net/packet: fix packet drop as of virtio gso
        net: dsa: b53: Keep CPU port as tagged in all VLANs
        openvswitch: load NAT helper
        bnxt_en: get the reduced max_irqs by the ones used by RDMA
        bnxt_en: free hwrm resources, if driver probe fails.
        bnxt_en: Fix enables field in HWRM_QUEUE_COS2BW_CFG request
        bnxt_en: Fix VNIC reservations on the PF.
        team: Forbid enslaving team device to itself
        net/usb: cancel pending work when unbinding smsc75xx
        mlxsw: spectrum: Delete RIF when VLAN device is removed
        ...
      c1d84a1b
    • S
      iwlwifi: dbg: make trigger functions type agnostic · ea7cb829
      Sara Sharon 提交于
      As preparation for new trigger type, make iwl_fw_dbg_collect_desc
      agnostic to the trigger structure.
      Signed-off-by: NSara Sharon <sara.sharon@intel.com>
      Signed-off-by: NLuca Coelho <luciano.coelho@intel.com>
      ea7cb829
    • S
      iwlwifi: dbg: decrement occurrences for all triggers · af303252
      Sara Sharon 提交于
      iwl_fw_dbg_collect can be called by any function that already
      has the error string ready. iwl_fw_dbg_collect_trig, on the
      other hand, does string formatting. The occurrences decrement
      is at iwl_fw_dbg_collect_trig, instead of iwl_fw_dbg_collect,
      which causes it to sometimes be skipped. Move it to the right
      location.
      Signed-off-by: NSara Sharon <sara.sharon@intel.com>
      Signed-off-by: NLuca Coelho <luciano.coelho@intel.com>
      af303252