linux-mips
[Top] [All Lists]

[PATCH] Broadcom Sibyte SB1xxx NAPI ethernet support

To: "Martin Michlmayr" <tbm@cyrius.com>, linux-mips@linux-mips.org
Subject: [PATCH] Broadcom Sibyte SB1xxx NAPI ethernet support
From: "Tom Rix" <trix@specifix.com>
Date: Thu, 09 Mar 2006 22:42:21 -0600
Cc: "Mark E Mason" <mark.e.mason@broadcom.com>
In-reply-to: <op.s544y1x4thfl8t@localhost.localdomain>
Organization: specifix
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <20060309060606.GA16963@deprecation.cyrius.com> <op.s544y1x4thfl8t@localhost.localdomain>
Sender: linux-mips-bounce@linux-mips.org
User-agent: Opera M2/8.51 (Linux, build 1462)
This patch adds NAPI support for the Broadcom Sibyte SB1xxx family. The changes are limited to adding a new config key SBMAC_NAPI to the drivers/net/Kconfig and by adding the poll op and interrupt support to drivers/net/sb1250-mac.c.

This patch also has a fix to drivers/net/sb1250-mac.c, the dma descriptor table ptr is allocated, aligned and the aligned ptr is freed. If the ptr was not already aligned (usually is) then the free would not work of what was returned by the kmalloc. A variable was added to store the unaligned pointer so that it could be properly freed.

I have tested this patch on a BCM91250A-SWARM Pass 2 / An.

Mark Mason from Broadcom was very helpful and tested this patch on at least a 1480.

Tom





Attachment: mips-sb1250-mac-NAPI-3.patch.txt
Description: Text document

<Prev in Thread] Current Thread [Next in Thread>