emlxs_ip.c (82527734) | emlxs_ip.c (a9800beb) |
---|---|
1/* 2 * CDDL HEADER START 3 * 4 * The contents of this file are subject to the terms of the 5 * Common Development and Distribution License (the "License"). 6 * You may not use this file except in compliance with the License. 7 * 8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE --- 6 unchanged lines hidden (view full) --- 15 * If applicable, add the following below this CDDL HEADER, with the 16 * fields enclosed by brackets "[]" replaced with your own identifying 17 * information: Portions Copyright [yyyy] [name of copyright owner] 18 * 19 * CDDL HEADER END 20 */ 21 22/* | 1/* 2 * CDDL HEADER START 3 * 4 * The contents of this file are subject to the terms of the 5 * Common Development and Distribution License (the "License"). 6 * You may not use this file except in compliance with the License. 7 * 8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE --- 6 unchanged lines hidden (view full) --- 15 * If applicable, add the following below this CDDL HEADER, with the 16 * fields enclosed by brackets "[]" replaced with your own identifying 17 * information: Portions Copyright [yyyy] [name of copyright owner] 18 * 19 * CDDL HEADER END 20 */ 21 22/* |
23 * Copyright 2009 Emulex. All rights reserved. | 23 * Copyright 2010 Emulex. All rights reserved. |
24 * Use is subject to license terms. 25 */ 26 27 28#include <emlxs.h> 29 30/* Required for EMLXS_CONTEXT in EMLXS_MSGF calls */ 31EMLXS_MSG_DEF(EMLXS_IP_C); --- 215 unchanged lines hidden (view full) --- 247 248 else { 249 /* We have to drop this frame because we do not have */ 250 /* the S_ID of the request */ 251 EMLXS_MSGF(EMLXS_CONTEXT, &emlxs_unsol_ip_dropped_msg, 252 "Node not found. mac=%02x%02x%02x%02x%02x%02x", 253 mac[0], mac[1], mac[2], mac[3], mac[4], mac[5]); 254 | 24 * Use is subject to license terms. 25 */ 26 27 28#include <emlxs.h> 29 30/* Required for EMLXS_CONTEXT in EMLXS_MSGF calls */ 31EMLXS_MSG_DEF(EMLXS_IP_C); --- 215 unchanged lines hidden (view full) --- 247 248 else { 249 /* We have to drop this frame because we do not have */ 250 /* the S_ID of the request */ 251 EMLXS_MSGF(EMLXS_CONTEXT, &emlxs_unsol_ip_dropped_msg, 252 "Node not found. mac=%02x%02x%02x%02x%02x%02x", 253 mac[0], mac[1], mac[2], mac[3], mac[4], mac[5]); 254 |
255 (void) emlxs_ub_release((opaque_t)port, 1, | 255 (void) emlxs_fca_ub_release((opaque_t)port, 1, |
256 &ubp->ub_token); 257 258 continue; 259 } 260 261 if (cmd->un.xrseq.w5.hcsw.Fctl & BC) { 262 IpBcastReceived++; 263 } else { --- 91 unchanged lines hidden (view full) --- 355 } 356 357out: 358 359 if (hba->flag & FC_HBQ_ENABLED) { 360 emlxs_update_HBQ_index(hba, hbq_id); 361 } else { 362 if (mp) { | 256 &ubp->ub_token); 257 258 continue; 259 } 260 261 if (cmd->un.xrseq.w5.hcsw.Fctl & BC) { 262 IpBcastReceived++; 263 } else { --- 91 unchanged lines hidden (view full) --- 355 } 356 357out: 358 359 if (hba->flag & FC_HBQ_ENABLED) { 360 emlxs_update_HBQ_index(hba, hbq_id); 361 } else { 362 if (mp) { |
363 (void) emlxs_mem_put(hba, MEM_IPBUF, (uint8_t *)mp); | 363 emlxs_mem_put(hba, MEM_IPBUF, (void *)mp); |
364 } 365 (void) emlxs_post_buffer(hba, rp, 1); 366 } 367 368 HBASTATS.IpDropped++; 369 370 return (0); 371 --- 151 unchanged lines hidden --- | 364 } 365 (void) emlxs_post_buffer(hba, rp, 1); 366 } 367 368 HBASTATS.IpDropped++; 369 370 return (0); 371 --- 151 unchanged lines hidden --- |