mlxsw: pci: Limit number of entries being sent in single MAP_FA cmd
authorJiri Pirko <jiri@mellanox.com>
Thu, 15 Oct 2015 15:43:20 +0000 (17:43 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 16 Oct 2015 06:27:49 +0000 (23:27 -0700)
commit3e2206da73e37c0fc07675b5caf25d3b26e33b7d
tree6f022914bec20b679b96a013bdfc45d1af0a3465
parentc85c3882ad88dd36105148912cd95084b09a5676
mlxsw: pci: Limit number of entries being sent in single MAP_FA cmd

Firmware accepts only limited number of mapping entries for MAP_FA
command. In order to prevent overflow, introduce a limit and in case the
number of entries is bigger, call MAP_FA multiple times.

Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/cmd.h
drivers/net/ethernet/mellanox/mlxsw/pci.c
This page took 0.0258 seconds and 5 git commands to generate.