1. 13 11月, 2019 3 次提交
    • S
      mlxsw: emad: Remove deprecated EMAD TLVs · d17eb403
      Shalom Toledo 提交于
      Remove deprecated EMAD TLVs.
      Signed-off-by: NShalom Toledo <shalomt@mellanox.com>
      Acked-by: NJiri Pirko <jiri@mellanox.com>
      Signed-off-by: NIdo Schimmel <idosch@mellanox.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      d17eb403
    • S
      mlxsw: core: Parse TLVs' offsets of incoming EMADs · 5aa4165c
      Shalom Toledo 提交于
      Until now the code assumes a fixed structure which makes it difficult to
      support EMADs with and without new TLVs.
      
      Make it more generic by parsing the TLVs when the EMADs are received and
      store the offset to the different TLVs in the control block. Using these
      offsets to extract information from the EMADs without relying on a specific
      structure.
      Signed-off-by: NShalom Toledo <shalomt@mellanox.com>
      Acked-by: NJiri Pirko <jiri@mellanox.com>
      Signed-off-by: NIdo Schimmel <idosch@mellanox.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      5aa4165c
    • M
      net: ethernet: ti: Add dependency for TI_DAVINCI_EMAC · b2ef81dc
      Mao Wenan 提交于
      If TI_DAVINCI_EMAC=y and GENERIC_ALLOCATOR is not set,
      below erros can be seen:
      drivers/net/ethernet/ti/davinci_cpdma.o: In function `cpdma_desc_pool_destroy.isra.14':
      davinci_cpdma.c:(.text+0x359): undefined reference to `gen_pool_size'
      davinci_cpdma.c:(.text+0x365): undefined reference to `gen_pool_avail'
      davinci_cpdma.c:(.text+0x373): undefined reference to `gen_pool_avail'
      davinci_cpdma.c:(.text+0x37f): undefined reference to `gen_pool_size'
      drivers/net/ethernet/ti/davinci_cpdma.o: In function `__cpdma_chan_free':
      davinci_cpdma.c:(.text+0x4a2): undefined reference to `gen_pool_free_owner'
      drivers/net/ethernet/ti/davinci_cpdma.o: In function `cpdma_chan_submit_si':
      davinci_cpdma.c:(.text+0x66c): undefined reference to `gen_pool_alloc_algo_owner'
      davinci_cpdma.c:(.text+0x805): undefined reference to `gen_pool_free_owner'
      drivers/net/ethernet/ti/davinci_cpdma.o: In function `cpdma_ctlr_create':
      davinci_cpdma.c:(.text+0xabd): undefined reference to `devm_gen_pool_create'
      davinci_cpdma.c:(.text+0xb79): undefined reference to `gen_pool_add_owner'
      drivers/net/ethernet/ti/davinci_cpdma.o: In function `cpdma_check_free_tx_desc':
      davinci_cpdma.c:(.text+0x16c6): undefined reference to `gen_pool_avail'
      
      This patch mades TI_DAVINCI_EMAC select GENERIC_ALLOCATOR.
      
      Fixes: 99f62971 ("net: ethernet: ti: cpsw: drop TI_DAVINCI_CPDMA config option")
      Signed-off-by: NMao Wenan <maowenan@huawei.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      b2ef81dc
  2. 12 11月, 2019 37 次提交