emulex_oce: fix gcc2 build.
This commit is contained in:
@@ -2256,8 +2256,9 @@ oce_check_ipv6_ext_hdr(struct mbuf *m)
|
|||||||
caddr_t m_datatemp = m->m_data;
|
caddr_t m_datatemp = m->m_data;
|
||||||
|
|
||||||
if (eh->ether_type == htons(ETHERTYPE_IPV6)) {
|
if (eh->ether_type == htons(ETHERTYPE_IPV6)) {
|
||||||
|
struct ip6_hdr *ip6;
|
||||||
m->m_data += sizeof(struct ether_header);
|
m->m_data += sizeof(struct ether_header);
|
||||||
struct ip6_hdr *ip6 = mtod(m, struct ip6_hdr *);
|
ip6 = mtod(m, struct ip6_hdr *);
|
||||||
|
|
||||||
if((ip6->ip6_nxt != IPPROTO_TCP) && \
|
if((ip6->ip6_nxt != IPPROTO_TCP) && \
|
||||||
(ip6->ip6_nxt != IPPROTO_UDP)){
|
(ip6->ip6_nxt != IPPROTO_UDP)){
|
||||||
|
|||||||
@@ -119,8 +119,8 @@ oce_fw_clean(POCE_SOFTC sc)
|
|||||||
static int
|
static int
|
||||||
oce_mbox_wait(POCE_SOFTC sc, uint32_t tmo_sec)
|
oce_mbox_wait(POCE_SOFTC sc, uint32_t tmo_sec)
|
||||||
{
|
{
|
||||||
tmo_sec *= 10000;
|
|
||||||
pd_mpu_mbox_db_t mbox_db;
|
pd_mpu_mbox_db_t mbox_db;
|
||||||
|
tmo_sec *= 10000;
|
||||||
|
|
||||||
for (;;) {
|
for (;;) {
|
||||||
if (tmo_sec != 0) {
|
if (tmo_sec != 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user