summaryrefslogtreecommitdiffstats
path: root/MdeModulePkg/Universal/Network/Tcp4Dxe/SockImpl.c
diff options
context:
space:
mode:
authorZhang Lubo <lubo.zhang@intel.com>2016-09-23 12:01:28 +0800
committerJiaxin Wu <jiaxin.wu@intel.com>2016-10-09 14:29:40 +0800
commitdea6914dac8ca883be4cee21b139b263b73769ec (patch)
tree46c3531c8f1e44b131ebe64471b7c85eb5ffcd90 /MdeModulePkg/Universal/Network/Tcp4Dxe/SockImpl.c
parentf3612a8d58eeb6448ab8e5f5c28c8ce6a3356c5f (diff)
downloadedk2-dea6914dac8ca883be4cee21b139b263b73769ec.tar.gz
edk2-dea6914dac8ca883be4cee21b139b263b73769ec.tar.bz2
edk2-dea6914dac8ca883be4cee21b139b263b73769ec.zip
MdeModulePkg:TcpDriver need to use EFI_D_NET for DEBUG maessage.
Tcp driver need to use EFI_D_NET to log DEBUG message, So it becomes easy to separate/filter out debug messages from network stack versus generic EFI_D_INFO debugs. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Zhang Lubo <lubo.zhang@intel.com> Cc: Hegde Nagaraj P <nagaraj-p.hegde@hpe.com> Cc: Subramanian Sriram <sriram-s@hpe.com> Cc: Fu Siyuan <siyuan.fu@intel.com> Cc: Ye Ting <ting.ye@intel.com> Reviewed-by: Sriram Subramanian <sriram-s@hpe.com>
Diffstat (limited to 'MdeModulePkg/Universal/Network/Tcp4Dxe/SockImpl.c')
-rw-r--r--MdeModulePkg/Universal/Network/Tcp4Dxe/SockImpl.c46
1 files changed, 23 insertions, 23 deletions
diff --git a/MdeModulePkg/Universal/Network/Tcp4Dxe/SockImpl.c b/MdeModulePkg/Universal/Network/Tcp4Dxe/SockImpl.c
index 2e31643821..3025790a20 100644
--- a/MdeModulePkg/Universal/Network/Tcp4Dxe/SockImpl.c
+++ b/MdeModulePkg/Universal/Network/Tcp4Dxe/SockImpl.c
@@ -1,7 +1,7 @@
/** @file
Implementation of the Socket.
-Copyright (c) 2005 - 2012, Intel Corporation. All rights reserved.<BR>
+Copyright (c) 2005 - 2016, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at
@@ -33,7 +33,7 @@ SockTcpDataToRcv (
OUT BOOLEAN *IsUrg,
IN UINT32 BufLen
);
-
+
/**
Process the send token.
@@ -49,7 +49,7 @@ SockProcessSndToken (
Supporting function for both SockImpl and SockInterface.
@param Event The Event this notify function registered to, ignored.
-
+
**/
VOID
EFIAPI
@@ -322,7 +322,7 @@ SockProcessTcpSndData (
@param Sock Pointer to the socket.
@param PendingTokenList Pointer to the token list to be flushed.
-
+
**/
VOID
SockFlushPendingToken (
@@ -352,7 +352,7 @@ SockFlushPendingToken (
/**
- Wake up the connection token while the connection is successfully established,
+ Wake up the connection token while the connection is successfully established,
then try to process any pending send token.
@param Sock Pointer to the socket.
@@ -413,7 +413,7 @@ SockWakeListenToken (
RemoveEntryList (&Sock->ConnectionList);
Parent->ConnCnt--;
- DEBUG ((EFI_D_INFO, "SockWakeListenToken: accept a socket, now conncnt is %d", Parent->ConnCnt));
+ DEBUG ((EFI_D_NET, "SockWakeListenToken: accept a socket, now conncnt is %d", Parent->ConnCnt));
Sock->Parent = NULL;
}
@@ -664,7 +664,7 @@ SockCreate (
Parent->ConnCnt++;
DEBUG (
- (EFI_D_INFO,
+ (EFI_D_NET,
"SockCreate: Create a new socket and add to parent, now conncnt is %d\n",
Parent->ConnCnt)
);
@@ -753,7 +753,7 @@ SockDestroy (
(Sock->Parent->ConnCnt)--;
DEBUG (
- (EFI_D_INFO,
+ (EFI_D_NET,
"SockDestroy: Delete a unaccepted socket from parent"
"now conncnt is %d\n",
Sock->Parent->ConnCnt)
@@ -933,10 +933,10 @@ SockClone (
/**
- Called by the low layer protocol to indicate the socket a connection is
- established.
-
- This function just changes the socket's state to SO_CONNECTED
+ Called by the low layer protocol to indicate the socket a connection is
+ established.
+
+ This function just changes the socket's state to SO_CONNECTED
and signals the token used for connection establishment.
@param Sock Pointer to the socket associated with the
@@ -964,13 +964,13 @@ SockConnEstablished (
/**
Called by the low layer protocol to indicate the connection is closed.
-
- This function flushes the socket, sets the state to SO_CLOSED and signals
+
+ This function flushes the socket, sets the state to SO_CLOSED and signals
the close token.
@param Sock Pointer to the socket associated with the closed
connection.
-
+
**/
VOID
SockConnClosed (
@@ -994,8 +994,8 @@ SockConnClosed (
/**
Called by low layer protocol to indicate that some data is sent or processed.
-
- This function trims the sent data in the socket send buffer, signals the data
+
+ This function trims the sent data in the socket send buffer, signals the data
token if proper.
@param Sock Pointer to the socket.
@@ -1084,8 +1084,8 @@ SockGetDataToSend (
/**
Called by the low layer protocol to deliver received data to socket layer.
-
- This function will append the data to the socket receive buffer, set ther
+
+ This function will append the data to the socket receive buffer, set ther
urgent data length and then check if any receive token can be signaled.
@param Sock Pointer to the socket.
@@ -1190,10 +1190,10 @@ SockRcvdErr (
/**
- Called by the low layer protocol to indicate that there will be no more data
+ Called by the low layer protocol to indicate that there will be no more data
from the communication peer.
-
- This function set the socket's state to SO_NO_MORE_DATA and signal all queued
+
+ This function set the socket's state to SO_NO_MORE_DATA and signal all queued
IO tokens with the error status EFI_CONNECTION_FIN.
@param Sock Pointer to the socket.
@@ -1257,7 +1257,7 @@ SockBufFirst (
@param SockEntry Pointer to the buffer block prior to the required
one.
- @return Pointer to the buffer block next to SockEntry. NULL if SockEntry is
+ @return Pointer to the buffer block next to SockEntry. NULL if SockEntry is
the tail or head entry.
**/