aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ll_temac.h
diff options
context:
space:
mode:
authorBrian Hill <brian.hill@xilinx.com>2010-05-26 20:44:30 -0700
committerDavid S. Miller <davem@davemloft.net>2010-05-26 20:44:30 -0700
commit23ecc4bde21f0ccb38f4b53cadde7fc5d67d68e3 (patch)
treebb2cb5eb3121164665f704a8597a9dd18de63df0 /drivers/net/ll_temac.h
parentnet: ll_temac: fix interrupt bug when interrupt 0 is used (diff)
downloadlinux-dev-23ecc4bde21f0ccb38f4b53cadde7fc5d67d68e3.tar.xz
linux-dev-23ecc4bde21f0ccb38f4b53cadde7fc5d67d68e3.zip
net: ll_temac: fix checksum offload logic
The current checksum offload code does not work and this corrects that functionality. It also updates the interrupt coallescing initialization so than there are fewer interrupts and performance is increased. Signed-off-by: Brian Hill <brian.hill@xilinx.com> Signed-off-by: John Linn <john.linn@xilinx.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ll_temac.h')
-rw-r--r--drivers/net/ll_temac.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/net/ll_temac.h b/drivers/net/ll_temac.h
index c03358434acb..522abe2ff25a 100644
--- a/drivers/net/ll_temac.h
+++ b/drivers/net/ll_temac.h
@@ -295,6 +295,10 @@ This option defaults to enabled (set) */
#define MULTICAST_CAM_TABLE_NUM 4
+/* TEMAC Synthesis features */
+#define TEMAC_FEATURE_RX_CSUM (1 << 0)
+#define TEMAC_FEATURE_TX_CSUM (1 << 1)
+
/* TX/RX CURDESC_PTR points to first descriptor */
/* TX/RX TAILDESC_PTR points to last descriptor in linked list */
@@ -353,6 +357,7 @@ struct temac_local {
struct mutex indirect_mutex;
u32 options; /* Current options word */
int last_link;
+ unsigned int temac_features;
/* Buffer descriptors */
struct cdmac_bd *tx_bd_v;