Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 231223
b: refs/heads/master
c: d0f4915
h: refs/heads/master
i:
  231221: 47b3d08
  231219: dd59b9f
  231215: b909d91
v: v3
  • Loading branch information
Tobias Klauser authored and David S. Miller committed Jan 14, 2011
1 parent 2f9bfc6 commit 2c14a47
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 51e7eed79c41180919ff94942895ba38467d9ad4
refs/heads/master: d0f49157d1ce02671a450b566a12ff19baed6c19
10 changes: 1 addition & 9 deletions trunk/drivers/net/tile/tilepro.c
Original file line number Diff line number Diff line change
Expand Up @@ -142,14 +142,6 @@
MODULE_AUTHOR("Tilera");
MODULE_LICENSE("GPL");


#define IS_MULTICAST(mac_addr) \
(((u8 *)(mac_addr))[0] & 0x01)

#define IS_BROADCAST(mac_addr) \
(((u16 *)(mac_addr))[0] == 0xffff)


/*
* Queue of incoming packets for a specific cpu and device.
*
Expand Down Expand Up @@ -795,7 +787,7 @@ static bool tile_net_poll_aux(struct tile_net_cpu *info, int index)
/*
* FIXME: Implement HW multicast filter.
*/
if (!IS_MULTICAST(buf) && !IS_BROADCAST(buf)) {
if (is_unicast_ether_addr(buf)) {
/* Filter packets not for our address. */
const u8 *mine = dev->dev_addr;
filter = compare_ether_addr(mine, buf);
Expand Down

0 comments on commit 2c14a47

Please sign in to comment.