[Top] [All Lists]

[PATCH] Broadcom Sibyte SB1xxx NAPI ethernet support

To: "Martin Michlmayr" <>,
Subject: [PATCH] Broadcom Sibyte SB1xxx NAPI ethernet support
From: "Tom Rix" <>
Date: Thu, 09 Mar 2006 22:42:21 -0600
Cc: "Mark E Mason" <>
In-reply-to: <op.s544y1x4thfl8t@localhost.localdomain>
Organization: specifix
Original-recipient: rfc822;
References: <> <op.s544y1x4thfl8t@localhost.localdomain>
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.


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

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