35 #include <linux/if_vlan.h>
56 return PTR_ERR(mailbox);
58 filter = mailbox->
buf;
59 memset(filter, 0,
sizeof(*filter));
62 for (j = 0; j < 32; j++)
83 return PTR_ERR(mailbox);
84 memset(mailbox->
buf, 0,
sizeof(*qport_context));
85 err = mlx4_cmd_box(mdev->
dev, 0, mailbox->
dma, port, 0,
90 qport_context = mailbox->
buf;
123 u64 in_mod = reset << 8 |
port;
129 return PTR_ERR(mailbox);
130 memset(mailbox->
buf, 0,
sizeof(*mlx4_en_stats));
131 err = mlx4_cmd_box(mdev->
dev, 0, mailbox->
dma, in_mod, 0,
137 mlx4_en_stats = mailbox->
buf;