mirror of
https://github.com/xemu-project/xemu.git
synced 2024-11-24 12:09:58 +00:00
e1000: make some tables 'const'
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
This commit is contained in:
parent
117e1e8244
commit
af2960f942
@ -544,8 +544,8 @@ start_xmit(E1000State *s)
|
||||
static int
|
||||
receive_filter(E1000State *s, const uint8_t *buf, int size)
|
||||
{
|
||||
static uint8_t bcast[] = {0xff, 0xff, 0xff, 0xff, 0xff, 0xff};
|
||||
static int mta_shift[] = {4, 3, 2, 0};
|
||||
static const uint8_t bcast[] = {0xff, 0xff, 0xff, 0xff, 0xff, 0xff};
|
||||
static const int mta_shift[] = {4, 3, 2, 0};
|
||||
uint32_t f, rctl = s->mac_reg[RCTL], ra[2], *rp;
|
||||
|
||||
if (is_vlan_packet(s, buf) && vlan_rx_filter_enabled(s)) {
|
||||
|
Loading…
Reference in New Issue
Block a user