diff options
author | Florian Fainelli <f.fainelli@gmail.com> | 2017-08-30 21:39:33 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-08-31 01:02:42 +0200 |
commit | df191632f814357ee4d646421662d866028b569d (patch) | |
tree | e6644946baea8413b4bfdc38730384b4d5069d5b /drivers/net/dsa/bcm_sf2.h | |
parent | kcm: do not attach PF_KCM sockets to avoid deadlock (diff) | |
download | linux-df191632f814357ee4d646421662d866028b569d.tar.xz linux-df191632f814357ee4d646421662d866028b569d.zip |
net: dsa: bcm_sf2: Fix number of CFP entries for BCM7278
BCM7278 has only 128 entries while BCM7445 has the full 256 entries set,
fix that.
Fixes: 7318166cacad ("net: dsa: bcm_sf2: Add support for ethtool::rxnfc")
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Reviewed-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/dsa/bcm_sf2.h')
-rw-r--r-- | drivers/net/dsa/bcm_sf2.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/dsa/bcm_sf2.h b/drivers/net/dsa/bcm_sf2.h index 7d3030e04f11..7f9125eef3df 100644 --- a/drivers/net/dsa/bcm_sf2.h +++ b/drivers/net/dsa/bcm_sf2.h @@ -72,6 +72,7 @@ struct bcm_sf2_priv { u32 type; const u16 *reg_offsets; unsigned int core_reg_align; + unsigned int num_cfp_rules; /* spinlock protecting access to the indirect registers */ spinlock_t indir_lock; |