diff options
author | Sebastian Poehn <sebastian.poehn@belden.com> | 2011-06-20 16:57:59 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-06-20 16:57:59 -0400 |
commit | 4aa3a715551c93eda32d79bd52042ce500bd5383 (patch) | |
tree | 68a67ba35f2a4c27cef326ce87a9d97593416fae /drivers/net/gianfar.c | |
parent | d13d6bffb418a660c06a5a12afcf7e7081489548 (diff) |
gianfar v5: implement nfc
This patch adds all missing functionalities for nfc except GRXFH. There is so much code because hardware has not a TCAM.
Further hardware rule space is very limited. So I had to extensively use
optimization features. Both reasons lead to the necessity to hold all
online flows in a linked-list.
Change-log:
# Some suggestions by Joe Perches applied (thanks!)
# Shorted some logs
# Use memcmp() for comparing
Signed-off-by: Sebastian Poehn <sebastian.poehn@belden.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/gianfar.c')
-rw-r--r-- | drivers/net/gianfar.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/drivers/net/gianfar.c b/drivers/net/gianfar.c index 0c748328ca7b..def7f7efc803 100644 --- a/drivers/net/gianfar.c +++ b/drivers/net/gianfar.c | |||
@@ -657,6 +657,11 @@ static int gfar_of_init(struct platform_device *ofdev, struct net_device **pdev) | |||
657 | priv->num_rx_queues = num_rx_qs; | 657 | priv->num_rx_queues = num_rx_qs; |
658 | priv->num_grps = 0x0; | 658 | priv->num_grps = 0x0; |
659 | 659 | ||
660 | /* Init Rx queue filer rule set linked list*/ | ||
661 | INIT_LIST_HEAD(&priv->rx_list.list); | ||
662 | priv->rx_list.count = 0; | ||
663 | mutex_init(&priv->rx_queue_access); | ||
664 | |||
660 | model = of_get_property(np, "model", NULL); | 665 | model = of_get_property(np, "model", NULL); |
661 | 666 | ||
662 | for (i = 0; i < MAXGROUPS; i++) | 667 | for (i = 0; i < MAXGROUPS; i++) |
@@ -1150,9 +1155,8 @@ static int gfar_probe(struct platform_device *ofdev) | |||
1150 | priv->rx_queue[i]->rxic = DEFAULT_RXIC; | 1155 | priv->rx_queue[i]->rxic = DEFAULT_RXIC; |
1151 | } | 1156 | } |
1152 | 1157 | ||
1153 | /* enable filer if using multiple RX queues*/ | 1158 | /* always enable rx filer*/ |
1154 | if(priv->num_rx_queues > 1) | 1159 | priv->rx_filer_enable = 1; |
1155 | priv->rx_filer_enable = 1; | ||
1156 | /* Enable most messages by default */ | 1160 | /* Enable most messages by default */ |
1157 | priv->msg_enable = (NETIF_MSG_IFUP << 1 ) - 1; | 1161 | priv->msg_enable = (NETIF_MSG_IFUP << 1 ) - 1; |
1158 | 1162 | ||