Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 225379
b: refs/heads/master
c: 886f7fe
h: refs/heads/master
i:
  225377: 341447c
  225375: 1180e98
v: v3
  • Loading branch information
Rasesh Mody authored and David S. Miller committed Dec 26, 2010
1 parent 99829d4 commit c5b9843
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 815f41e74031d6dc6d6dd988f58c03a1d72d02b9
refs/heads/master: 886f7fedb0cee56acca7620d89186669273d3d56
25 changes: 25 additions & 0 deletions trunk/drivers/net/bna/bna_txrx.c
Original file line number Diff line number Diff line change
Expand Up @@ -1441,12 +1441,16 @@ bna_rxf_init(struct bna_rxf *rxf,
memset(rxf->vlan_filter_table, 0,
(sizeof(u32) * ((BFI_MAX_VLAN + 1) / 32)));

/* Set up VLAN 0 for pure priority tagged packets */
rxf->vlan_filter_table[0] |= 1;

bfa_fsm_set_state(rxf, bna_rxf_sm_stopped);
}

static void
bna_rxf_uninit(struct bna_rxf *rxf)
{
struct bna *bna = rxf->rx->bna;
struct bna_mac *mac;

bna_rit_mod_seg_put(&rxf->rx->bna->rit_mod, rxf->rit_segment);
Expand All @@ -1473,6 +1477,27 @@ bna_rxf_uninit(struct bna_rxf *rxf)
bna_mcam_mod_mac_put(&rxf->rx->bna->mcam_mod, mac);
}

/* Turn off pending promisc mode */
if (is_promisc_enable(rxf->rxmode_pending,
rxf->rxmode_pending_bitmask)) {
/* system promisc state should be pending */
BUG_ON(!(bna->rxf_promisc_id == rxf->rxf_id));
promisc_inactive(rxf->rxmode_pending,
rxf->rxmode_pending_bitmask);
bna->rxf_promisc_id = BFI_MAX_RXF;
}
/* Promisc mode should not be active */
BUG_ON(rxf->rxmode_active & BNA_RXMODE_PROMISC);

/* Turn off pending all-multi mode */
if (is_allmulti_enable(rxf->rxmode_pending,
rxf->rxmode_pending_bitmask)) {
allmulti_inactive(rxf->rxmode_pending,
rxf->rxmode_pending_bitmask);
}
/* Allmulti mode should not be active */
BUG_ON(rxf->rxmode_active & BNA_RXMODE_ALLMULTI);

rxf->rx = NULL;
}

Expand Down

0 comments on commit c5b9843

Please sign in to comment.