1. 07 5月, 2013 1 次提交
  2. 04 5月, 2013 3 次提交
  3. 30 4月, 2013 3 次提交
  4. 20 4月, 2013 5 次提交
    • B
      net: qmi_wwan: prevent duplicate mac address on link (firmware bug workaround) · cc6ba5fd
      Bjørn Mork 提交于
      We normally trust and use the CDC functional descriptors provided by a
      number of devices.  But some of these will erroneously list the address
      reserved for the device end of the link.  Attempting to use this on
      both the device and host side will naturally not work.
      
      Work around this bug by ignoring the functional descriptor and assign a
      random address instead in this case.
      Signed-off-by: NBjørn Mork <bjorn@mork.no>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      cc6ba5fd
    • B
      net: qmi_wwan: fixup destination address (firmware bug workaround) · 6483bdc9
      Bjørn Mork 提交于
      Received packets are sometimes addressed to 00:a0:c6:00:00:00
      instead of the address the device firmware should have learned
      from the host:
      
      321.224126 77.16.85.204 -> 148.122.171.134 ICMP 98 Echo (ping) request  id=0x4025, seq=64/16384, ttl=64
      
      0000  82 c0 82 c9 f1 67 82 c0 82 c9 f1 67 08 00 45 00   .....g.....g..E.
      0010  00 54 00 00 40 00 40 01 57 cc 4d 10 55 cc 94 7a   .T..@.@.W.M.U..z
      0020  ab 86 08 00 62 fc 40 25 00 40 b2 bc 6e 51 00 00   ....b.@%.@..nQ..
      0030  00 00 6b bd 09 00 00 00 00 00 10 11 12 13 14 15   ..k.............
      0040  16 17 18 19 1a 1b 1c 1d 1e 1f 20 21 22 23 24 25   .......... !"#$%
      0050  26 27 28 29 2a 2b 2c 2d 2e 2f 30 31 32 33 34 35   &'()*+,-./012345
      0060  36 37                                             67
      
      321.240607 148.122.171.134 -> 77.16.85.204 ICMP 98 Echo (ping) reply    id=0x4025, seq=64/16384, ttl=55
      
      0000  00 a0 c6 00 00 00 02 50 f3 00 00 00 08 00 45 00   .......P......E.
      0010  00 54 00 56 00 00 37 01 a0 76 94 7a ab 86 4d 10   .T.V..7..v.z..M.
      0020  55 cc 00 00 6a fc 40 25 00 40 b2 bc 6e 51 00 00   U...j.@%.@..nQ..
      0030  00 00 6b bd 09 00 00 00 00 00 10 11 12 13 14 15   ..k.............
      0040  16 17 18 19 1a 1b 1c 1d 1e 1f 20 21 22 23 24 25   .......... !"#$%
      0050  26 27 28 29 2a 2b 2c 2d 2e 2f 30 31 32 33 34 35   &'()*+,-./012345
      0060  36 37                                             67
      
      The bogus address is always the same, and matches the address
      suggested by many devices as a default address.  It is likely a
      hardcoded firmware default.
      
      The circumstances where this bug has been observed indicates that
      the trigger is related to timing or some other factor the host
      cannot control. Repeating the exact same configuration sequence
      that caused it to trigger once, will not necessarily cause it to
      trigger the next time. Reproducing the bug is therefore difficult.
      This opens up a possibility that the bug is more common than we can
      confirm, because affected devices often will work properly again
      after a reset.  A procedure most users are likely to try out before
      reporting a bug.
      
      Unconditionally rewriting the destination address if the first digit
      of the received packet is 0, is considered an acceptable compromise
      since we already have to inspect this digit.  The simplification will
      cause unnecessary rewrites if the real address starts with 0, but this
      is still better than adding additional tests for this particular case.
      Signed-off-by: NBjørn Mork <bjorn@mork.no>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      6483bdc9
    • B
      net: qmi_wwan: fixup missing ethernet header (firmware bug workaround) · 6ff509af
      Bjørn Mork 提交于
      A number of LTE devices from different vendors all suffer from the
      same firmware bug: Most of the packets received from the device while
      it is attached to a LTE network will not have an ethernet header. The
      devices work as expected when attached to 2G or 3G networks, sending
      an ethernet header with all packets.
      
      This driver is not aware of which network the modem attached to, and
      even if it were there are still some packet types which are always
      received with the header intact.
      
      All devices supported by this driver have severely limited
      networking capabilities:
       - can only transmit IPv4, IPv6 and possibly ARP
       - can only support a single host hardware address at any time
       - will only do point-to-point communcation with the host
      
      Because of this, we are able to reliably identify any bogus raw IP
      packets by simply looking at the 4 IP version bits.  All we need to
      do is to avoid 4 or 6 in the first digit of the mac address.  This
      workaround ensures this, and fix up the received packets as necessary.
      
      Given the distribution of the bug, it is believed that the source is
      the chipset vendor.  The devices which are verified to be affected are:
       Huawei E392u-12 (Qualcomm MDM9200)
       Pantech UML290  (Qualcomm MDM9600)
       Novatel USB551L (Qualcomm MDM9600)
       Novatel E362    (Qualcomm MDM9600)
      
      It is believed that the bug depend on firmware revision, which means
      that possibly all devices based on the above mentioned chipset may be
      affected if we consider all available firmware revisions.
      
      The information about affected devices and versions is likely
      incomplete.  As the additional overhead for packets not needing this
      fixup is very small, it is considered acceptable to apply the
      workaround to all devices handled by this driver.
      Reported-by: NDan Williams <dcbw@redhat.com>
      Signed-off-by: NBjørn Mork <bjorn@mork.no>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      6ff509af
    • P
      net: vlan: add protocol argument to packet tagging functions · 86a9bad3
      Patrick McHardy 提交于
      Add a protocol argument to the VLAN packet tagging functions. In case of HW
      tagging, we need that protocol available in the ndo_start_xmit functions,
      so it is stored in a new field in the skb. The new field fits into a hole
      (on 64 bit) and doesn't increase the sks's size.
      Signed-off-by: NPatrick McHardy <kaber@trash.net>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      86a9bad3
    • P
      net: vlan: rename NETIF_F_HW_VLAN_* feature flags to NETIF_F_HW_VLAN_CTAG_* · f646968f
      Patrick McHardy 提交于
      Rename the hardware VLAN acceleration features to include "CTAG" to indicate
      that they only support CTAGs. Follow up patches will introduce 802.1ad
      server provider tagging (STAGs) and require the distinction for hardware not
      supporting acclerating both.
      Signed-off-by: NPatrick McHardy <kaber@trash.net>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      f646968f
  5. 18 4月, 2013 1 次提交
  6. 17 4月, 2013 1 次提交
  7. 12 4月, 2013 11 次提交
  8. 09 4月, 2013 1 次提交
  9. 31 3月, 2013 1 次提交
  10. 30 3月, 2013 1 次提交
  11. 26 3月, 2013 4 次提交
  12. 19 3月, 2013 2 次提交
  13. 17 3月, 2013 1 次提交
  14. 15 3月, 2013 1 次提交
  15. 13 3月, 2013 1 次提交
    • B
      net: qmi_wwan: set correct altsetting for Gobi 1K devices · b701f16d
      Bjørn Mork 提交于
      commit bd877e48 ("net: qmi_wwan: use a single bind function for
      all device types") made Gobi 1K devices fail probing.
      
      Using the number of endpoints in the default altsetting to decide
      whether the function use one or two interfaces is wrong.  Other
      altsettings may provide more endpoints.
      
      With Gobi 1K devices, USB interface #3's altsetting is 0 by default, but
      altsetting 0 only provides one interrupt endpoint and is not sufficent
      for QMI.  Altsetting 1 provides all 3 endpoints required for qmi_wwan
      and works with QMI. Gobi 1K layout for intf#3 is:
      
          Interface Descriptor:  255/255/255
            bInterfaceNumber        3
            bAlternateSetting       0
            Endpoint Descriptor:  Interrupt IN
          Interface Descriptor:  255/255/255
            bInterfaceNumber        3
            bAlternateSetting       1
            Endpoint Descriptor:  Interrupt IN
            Endpoint Descriptor:  Bulk IN
            Endpoint Descriptor:  Bulk OUT
      
      Prior to commit bd877e48, we would call usbnet_get_endpoints
      before giving up finding enough endpoints. Removing the early
      endpoint number test and the strict functional descriptor
      requirement allow qmi_wwan_bind to continue until
      usbnet_get_endpoints has made the final attempt to collect
      endpoints.  This restores the behaviour from before commit
      bd877e48 without losing the added benefit of using a single bind
      function.
      
      The driver has always required a CDC Union functional descriptor
      for two-interface functions. Using the existence of this
      descriptor to detect two-interface functions is the logically
      correct method.
      Reported-by: NDan Williams <dcbw@redhat.com>
      Signed-off-by: NBjørn Mork <bjorn@mork.no>
      Tested-by: NDan Williams <dcbw@redhat.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      b701f16d
  16. 03 3月, 2013 1 次提交
    • F
      ax88179_178a: ASIX AX88179_178A USB 3.0/2.0 to gigabit ethernet adapter driver · e2ca90c2
      Freddy Xin 提交于
      This is a resubmission.
      Added kfree() in ax88179_get_eeprom to prevent memory leakage.
      Modified "__le16 rxctl" to "u16 rxctl" in "struct ax88179_data" and removed pointless casts.
      Removed asix_init and asix_exit functions and added "module_usb_driver(ax88179_178a_driver)".
      Fixed endianness issue on big endian systems and verified this driver on iBook G4.
      Removed steps that change net->features in ax88179_set_features function.
      Added "const" to ethtool_ops structure and fixed the coding style of AX88179_BULKIN_SIZE array.
      Fixed the issue that the default MTU is not 1500.
      Added ax88179_change_mtu function and enabled the hardware jumbo frame function to support an
      MTU higher than 1500.
      Fixed indentation and empty line coding style errors.
      The _nopm version usb functions were added to access register in suspend and resume functions.
      Serveral variables allocted dynamically were removed and replaced by stack variables.
      ax88179_get_eeprom were modified from asix_get_eeprom in asix_common.
      
      This patch adds a driver for ASIX's AX88179 family of USB 3.0/2.0
      to gigabit ethernet adapters. It's based on the AX88xxx driver but
      the usb commands used to access registers for AX88179 are completely different.
      This driver had been verified on x86 system with AX88179/AX88178A and
      Sitcomm LN-032 USB dongles.
      Signed-off-by: NFreddy Xin <freddy@asix.com.tw>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      e2ca90c2
  17. 28 2月, 2013 2 次提交
    • G
      usb/net/asix_devices: Add USBNET HG20F9 ethernet dongle · 45af3fb4
      Glen Turner 提交于
      This USB ethernet adapter was purchased in anodyne packaging
      from the computer store adjacent to linux.conf.au 2013 in
      Canberra (Australia). A web search shows other recent
      purchasers in Lancaster (UK) and Seattle (USA). Just like an
      emergent virus, our age of e-commerce and airmail allows
      underdocumented hardware to spread around the world instantly
      using the vector of ridiculously low prices.
      
      Paige Thompson, infected via eBay, discovered that the HG20F9
      is a copy of the Asix 88772B; many viruses copy the RNA of
      other viruses. See Paige's work at
      <https://github.com/paigeadele/HG20F9>.
      This patch uses her discovery to update the restructured Asix
      driver in the current kernel.
      
      Just as some viruses inhabit seemingly-healthy cells, the
      HG20F9 uses the Vendor ID 0x066b assigned to Linksys Inc.
      For the present there is no clash of Product ID 0x20f9.
      Signed-off-by: NGlen Turner <gdt@gdt.id.au>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      45af3fb4
    • B
      net: cdc_ncm: tag Huawei devices (e.g. E5331) with FLAG_WWAN · 1f84eab4
      Bjørn Mork 提交于
      Tag all Huawei NCM devices as WWAN modems, as we don't know of any which
      are not.  This is necessary for userspace clients to know that the device
      requires further setup on e.g. an AT-capable serial ports before
      connectivity is available.
      Signed-off-by: NBjørn Mork <bjorn@mork.no>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      1f84eab4