1. 28 10月, 2017 4 次提交
    • P
      nfp: inform the VF driver needs to be restarted after changing the MAC · a267eaeb
      Pablo Cascón 提交于
      Add message to inform the VF MAC was changed and the need to restart
      the VF driver for the changes to be effective.
      Signed-off-by: NPablo Cascón <pablo.cascon@netronome.com>
      Signed-off-by: NJakub Kicinski <jakub.kicinski@netronome.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      a267eaeb
    • F
      liquidio: fix kernel panic in VF driver · aa28667c
      Felix Manlunas 提交于
      Doing ifconfig down on VF driver in the middle of receiving line rate
      traffic causes a kernel panic:
      
          LiquidIO_VF 0000:02:00.3: should not come here should not get rx when poll mode = 0 for vf
          BUG: unable to handle kernel NULL pointer dereference at           (null)
          .
          .
          .
          Call Trace:
           <IRQ>
           ? tasklet_action+0x102/0x120
           __do_softirq+0x91/0x292
           irq_exit+0xb6/0xc0
           do_IRQ+0x4f/0xd0
           common_interrupt+0x93/0x93
           </IRQ>
          RIP: 0010:cpuidle_enter_state+0x142/0x2f0
          RSP: 0018:ffffffffa6403e20 EFLAGS: 00000246 ORIG_RAX: ffffffffffffff59
          RAX: 0000000000000000 RBX: 0000000000000003 RCX: 000000000000001f
          RDX: 0000000000000000 RSI: 000000002ab7519f RDI: 0000000000000000
          RBP: ffffffffa6403e58 R08: 0000000000000084 R09: 0000000000000018
          R10: ffffffffa6403df0 R11: 00000000000003c7 R12: 0000000000000003
          R13: ffffd27ebd806800 R14: ffffffffa64d40d8 R15: 0000007be072823f
           cpuidle_enter+0x17/0x20
           call_cpuidle+0x23/0x40
           do_idle+0x18c/0x1f0
           cpu_startup_entry+0x64/0x70
           rest_init+0xa5/0xb0
           start_kernel+0x45e/0x46b
           x86_64_start_reservations+0x24/0x26
           x86_64_start_kernel+0x6f/0x72
           secondary_startup_64+0xa5/0xa5
          Code:  Bad RIP value.
          RIP:           (null) RSP: ffff9246ed003f28
          CR2: 0000000000000000
          ---[ end trace 92731e80f31b7d7d ]---
          Kernel panic - not syncing: Fatal exception in interrupt
          Kernel Offset: 0x24000000 from 0xffffffff81000000 (relocation range: 0xffffffff80000000-0xffffffffbfffffff)
          ---[ end Kernel panic - not syncing: Fatal exception in interrupt
      
      Reason is:  in the function assigned to net_device_ops->ndo_stop, the steps
      for bringing down the interface are done in the wrong order.  The step that
      notifies the NIC firmware to stop forwarding packets to host is done too
      late.  Fix it by moving that step to the beginning.
      Signed-off-by: NFelix Manlunas <felix.manlunas@cavium.com>
      Signed-off-by: NRaghu Vatsavayi <raghu.vatsavayi@cavium.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      aa28667c
    • V
      net: dsa: move fixed link registration helpers · 57ab1ca2
      Vivien Didelot 提交于
      The new bindings (dsa2.c) and the old bindings (legacy.c) share two
      helpers dsa_cpu_dsa_setup and dsa_cpu_dsa_destroy, used to register or
      deregister a fixed PHY if a given port has a corresponding device node.
      
      Unclutter the code by moving them into two new port.c helpers,
      dsa_port_fixed_link_register_of and dsa_port_fixed_link_(un)register_of.
      Signed-off-by: NVivien Didelot <vivien.didelot@savoirfairelinux.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      57ab1ca2
    • M
      bnxt_en: Fix randconfig build errors. · 952c5719
      Michael Chan 提交于
      Fix undefined symbols when CONFIG_VLAN_8021Q or CONFIG_INET is not set.
      
      Fixes: 8c95f773 ("bnxt_en: add support for Flower based vxlan encap/decap offload")
      Reported-by: NJakub Kicinski <kubakici@wp.pl>
      Signed-off-by: NMichael Chan <michael.chan@broadcom.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      952c5719
  2. 27 10月, 2017 36 次提交