aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/gianfar.c
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2011-06-21 01:29:08 -0400
committerDavid S. Miller <davem@davemloft.net>2011-06-21 01:29:08 -0400
commit9f6ec8d697c08963d83880ccd35c13c5ace716ea (patch)
treead8d93cf6fcdd09b86ade09f5fcbbc66cdb1cca2 /drivers/net/gianfar.c
parent4aa3a715551c93eda32d79bd52042ce500bd5383 (diff)
parent56299378726d5f2ba8d3c8cbbd13cb280ba45e4f (diff)
Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6
Conflicts: drivers/net/wireless/iwlwifi/iwl-agn-rxon.c drivers/net/wireless/rtlwifi/pci.c net/netfilter/ipvs/ip_vs_core.c
Diffstat (limited to 'drivers/net/gianfar.c')
-rw-r--r--drivers/net/gianfar.c29
1 files changed, 13 insertions, 16 deletions
diff --git a/drivers/net/gianfar.c b/drivers/net/gianfar.c
index def7f7efc803..dc0a7aa42b2e 100644
--- a/drivers/net/gianfar.c
+++ b/drivers/net/gianfar.c
@@ -10,7 +10,7 @@
10 * Maintainer: Kumar Gala 10 * Maintainer: Kumar Gala
11 * Modifier: Sandeep Gopalpet <sandeep.kumar@freescale.com> 11 * Modifier: Sandeep Gopalpet <sandeep.kumar@freescale.com>
12 * 12 *
13 * Copyright 2002-2009 Freescale Semiconductor, Inc. 13 * Copyright 2002-2009, 2011 Freescale Semiconductor, Inc.
14 * Copyright 2007 MontaVista Software, Inc. 14 * Copyright 2007 MontaVista Software, Inc.
15 * 15 *
16 * This program is free software; you can redistribute it and/or modify it 16 * This program is free software; you can redistribute it and/or modify it
@@ -475,9 +475,6 @@ static const struct net_device_ops gfar_netdev_ops = {
475#endif 475#endif
476}; 476};
477 477
478unsigned int ftp_rqfpr[MAX_FILER_IDX + 1];
479unsigned int ftp_rqfcr[MAX_FILER_IDX + 1];
480
481void lock_rx_qs(struct gfar_private *priv) 478void lock_rx_qs(struct gfar_private *priv)
482{ 479{
483 int i = 0x0; 480 int i = 0x0;
@@ -872,28 +869,28 @@ static u32 cluster_entry_per_class(struct gfar_private *priv, u32 rqfar,
872 869
873 rqfar--; 870 rqfar--;
874 rqfcr = RQFCR_CLE | RQFCR_PID_MASK | RQFCR_CMP_EXACT; 871 rqfcr = RQFCR_CLE | RQFCR_PID_MASK | RQFCR_CMP_EXACT;
875 ftp_rqfpr[rqfar] = rqfpr; 872 priv->ftp_rqfpr[rqfar] = rqfpr;
876 ftp_rqfcr[rqfar] = rqfcr; 873 priv->ftp_rqfcr[rqfar] = rqfcr;
877 gfar_write_filer(priv, rqfar, rqfcr, rqfpr); 874 gfar_write_filer(priv, rqfar, rqfcr, rqfpr);
878 875
879 rqfar--; 876 rqfar--;
880 rqfcr = RQFCR_CMP_NOMATCH; 877 rqfcr = RQFCR_CMP_NOMATCH;
881 ftp_rqfpr[rqfar] = rqfpr; 878 priv->ftp_rqfpr[rqfar] = rqfpr;
882 ftp_rqfcr[rqfar] = rqfcr; 879 priv->ftp_rqfcr[rqfar] = rqfcr;
883 gfar_write_filer(priv, rqfar, rqfcr, rqfpr); 880 gfar_write_filer(priv, rqfar, rqfcr, rqfpr);
884 881
885 rqfar--; 882 rqfar--;
886 rqfcr = RQFCR_CMP_EXACT | RQFCR_PID_PARSE | RQFCR_CLE | RQFCR_AND; 883 rqfcr = RQFCR_CMP_EXACT | RQFCR_PID_PARSE | RQFCR_CLE | RQFCR_AND;
887 rqfpr = class; 884 rqfpr = class;
888 ftp_rqfcr[rqfar] = rqfcr; 885 priv->ftp_rqfcr[rqfar] = rqfcr;
889 ftp_rqfpr[rqfar] = rqfpr; 886 priv->ftp_rqfpr[rqfar] = rqfpr;
890 gfar_write_filer(priv, rqfar, rqfcr, rqfpr); 887 gfar_write_filer(priv, rqfar, rqfcr, rqfpr);
891 888
892 rqfar--; 889 rqfar--;
893 rqfcr = RQFCR_CMP_EXACT | RQFCR_PID_MASK | RQFCR_AND; 890 rqfcr = RQFCR_CMP_EXACT | RQFCR_PID_MASK | RQFCR_AND;
894 rqfpr = class; 891 rqfpr = class;
895 ftp_rqfcr[rqfar] = rqfcr; 892 priv->ftp_rqfcr[rqfar] = rqfcr;
896 ftp_rqfpr[rqfar] = rqfpr; 893 priv->ftp_rqfpr[rqfar] = rqfpr;
897 gfar_write_filer(priv, rqfar, rqfcr, rqfpr); 894 gfar_write_filer(priv, rqfar, rqfcr, rqfpr);
898 895
899 return rqfar; 896 return rqfar;
@@ -908,8 +905,8 @@ static void gfar_init_filer_table(struct gfar_private *priv)
908 905
909 /* Default rule */ 906 /* Default rule */
910 rqfcr = RQFCR_CMP_MATCH; 907 rqfcr = RQFCR_CMP_MATCH;
911 ftp_rqfcr[rqfar] = rqfcr; 908 priv->ftp_rqfcr[rqfar] = rqfcr;
912 ftp_rqfpr[rqfar] = rqfpr; 909 priv->ftp_rqfpr[rqfar] = rqfpr;
913 gfar_write_filer(priv, rqfar, rqfcr, rqfpr); 910 gfar_write_filer(priv, rqfar, rqfcr, rqfpr);
914 911
915 rqfar = cluster_entry_per_class(priv, rqfar, RQFPR_IPV6); 912 rqfar = cluster_entry_per_class(priv, rqfar, RQFPR_IPV6);
@@ -925,8 +922,8 @@ static void gfar_init_filer_table(struct gfar_private *priv)
925 /* Rest are masked rules */ 922 /* Rest are masked rules */
926 rqfcr = RQFCR_CMP_NOMATCH; 923 rqfcr = RQFCR_CMP_NOMATCH;
927 for (i = 0; i < rqfar; i++) { 924 for (i = 0; i < rqfar; i++) {
928 ftp_rqfcr[i] = rqfcr; 925 priv->ftp_rqfcr[i] = rqfcr;
929 ftp_rqfpr[i] = rqfpr; 926 priv->ftp_rqfpr[i] = rqfpr;
930 gfar_write_filer(priv, i, rqfcr, rqfpr); 927 gfar_write_filer(priv, i, rqfcr, rqfpr);
931 } 928 }
932} 929}