[ofw] Patch: Use localized strings for ipoib

Tzachi Dar tzachid at mellanox.co.il
Sun Oct 12 06:08:57 PDT 2008


Index: Q:/projinf4/trunk/ulp/ipoib/kernel/netipoib.inx
===================================================================
--- Q:/projinf4/trunk/ulp/ipoib/kernel/netipoib.inx (revision 3305)
+++ Q:/projinf4/trunk/ulp/ipoib/kernel/netipoib.inx (revision 3306)
@@ -69,7 +69,7 @@
 HKR, Ndi\Interfaces,            UpperRange, 0, "ndis5"
 HKR, Ndi\Interfaces,            LowerRange, 0, "ethernet"
 
-HKR, Ndi\Params\RqDepth,  ParamDesc, 0, "Receive Queue Depth"
+HKR, Ndi\Params\RqDepth,  ParamDesc, 0, %RQ_DEPTH_STR%
 HKR, Ndi\Params\RqDepth,  Type,  0, "dword"
 HKR, Ndi\Params\RqDepth,  Default, 0, "512"
 HKR, Ndi\Params\RqDepth,  Optional, 0, "0"
@@ -77,7 +77,7 @@
 HKR, Ndi\Params\RqDepth,  Max,  0, "1024"
 HKR, Ndi\Params\RqDepth,  Step,  0, "128"
 
-HKR, Ndi\Params\RqLowWatermark, ParamDesc, 0, "Receive Queue Low
Watermark"
+HKR, Ndi\Params\RqLowWatermark, ParamDesc, 0, %RQ_WATERMARK_STR%
 HKR, Ndi\Params\RqLowWatermark, Type,  0, "dword"
 HKR, Ndi\Params\RqLowWatermark, Default, 0, "4"
 HKR, Ndi\Params\RqLowWatermark, Optional, 0, "0"
@@ -85,7 +85,7 @@
 HKR, Ndi\Params\RqLowWatermark, Max,  0, "8"
 HKR, Ndi\Params\RqLowWatermark, Step,  0, "1"
 
-HKR, Ndi\Params\SqDepth,  ParamDesc, 0, "Send Queue Depth"
+HKR, Ndi\Params\SqDepth,  ParamDesc, 0, %SQ_DEPTH_STR%
 HKR, Ndi\Params\SqDepth,  Type,  0, "dword"
 HKR, Ndi\Params\SqDepth,  Default, 0, "512"
 HKR, Ndi\Params\SqDepth,  Optional, 0, "0"
@@ -93,58 +93,58 @@
 HKR, Ndi\Params\SqDepth,  Max,  0, "1024"
 HKR, Ndi\Params\SqDepth,  Step,  0, "128"
 
-HKR, Ndi\Params\SendChksum,  ParamDesc, 0, "Send Checksum Offload"
+HKR, Ndi\Params\SendChksum,  ParamDesc, 0, %SQ_CSUM_STR%
 HKR, Ndi\Params\SendChksum,  Type,  0, "enum"
 HKR, Ndi\Params\SendChksum,  Default, 0, "1"
 HKR, Ndi\Params\SendChksum,  Optional, 0, "0"
-HKR, Ndi\Params\SendChksum\enum, "0", 0, "Disabled"
-HKR, Ndi\Params\SendChksum\enum, "1", 0, "Enabled (if supported by HW)"
-HKR, Ndi\Params\SendChksum\enum, "2", 0, "Bypass"
+HKR, Ndi\Params\SendChksum\enum, "0", 0, %DISABLED_STR%
+HKR, Ndi\Params\SendChksum\enum, "1", 0, %ENABLED_IF_STR%
+HKR, Ndi\Params\SendChksum\enum, "2", 0, %BYPASS_STR%
 
-HKR, Ndi\Params\RecvChksum,  ParamDesc, 0, "Recv Checksum Offload"
+HKR, Ndi\Params\RecvChksum,  ParamDesc, 0, %RQ_CSUM_STR%
 HKR, Ndi\Params\RecvChksum,  Type,  0, "enum"
 HKR, Ndi\Params\RecvChksum,  Default, 0, "1"
 HKR, Ndi\Params\RecvChksum,  Optional, 0, "0"
-HKR, Ndi\Params\RecvChksum\enum, "0", 0, "Disabled"
-HKR, Ndi\Params\RecvChksum\enum, "1", 0, "Enabled (if supported by HW)"
-HKR, Ndi\Params\RecvChksum\enum, "2", 0, "Bypass"
+HKR, Ndi\Params\RecvChksum\enum, "0", 0, %DISABLED_STR%
+HKR, Ndi\Params\RecvChksum\enum, "1", 0, %ENABLED_IF_STR%
+HKR, Ndi\Params\RecvChksum\enum, "2", 0, %BYPASS_STR%
 
-HKR, Ndi\Params\lso,  ParamDesc, 0, "Large Send Offload"
+HKR, Ndi\Params\lso,  ParamDesc, 0, %LSO_STR%
 HKR, Ndi\Params\lso,  Type,  0, "enum"
 HKR, Ndi\Params\lso,  Default, 0, "0"
 HKR, Ndi\Params\lso,  Optional, 0, "0"
-HKR, Ndi\Params\lso\enum, "0", 0, "Disabled"
-HKR, Ndi\Params\lso\enum, "1", 0, "Enabled"
+HKR, Ndi\Params\lso\enum, "0", 0, %DISABLED_STR%
+HKR, Ndi\Params\lso\enum, "1", 0, %ENABLED_STR%
 
 
-HKR, Ndi\Params\SaTimeout,  ParamDesc, 0, "SA Query Timeout (ms)"
+HKR, Ndi\Params\SaTimeout,  ParamDesc, 0, %SA_QUERY_TO_STR%
 HKR, Ndi\Params\SaTimeout,  Type,  0, "dword"
 HKR, Ndi\Params\SaTimeout,  Default, 0, "1000"
 HKR, Ndi\Params\SaTimeout,  Optional, 0, "0"
 HKR, Ndi\Params\SaTimeout,  Min,  0, "500"
 HKR, Ndi\Params\SaTimeout,  Step,  0, "250"
 
-HKR, Ndi\Params\SaRetries,  ParamDesc, 0, "SA Query Retry Count"
+HKR, Ndi\Params\SaRetries,  ParamDesc, 0, %SA_QUERY_RETRY_STR%
 HKR, Ndi\Params\SaRetries,  Type,  0, "dword"
 HKR, Ndi\Params\SaRetries,  Default, 0, "10"
 HKR, Ndi\Params\SaRetries,  Optional, 0, "0"
 HKR, Ndi\Params\SaRetries,  Min,  0, "1"
 
-HKR, Ndi\Params\RecvRatio,  ParamDesc, 0, "Receive Pool Ratio"
+HKR, Ndi\Params\RecvRatio,  ParamDesc, 0, %RECV_RATIO_STR%
 HKR, Ndi\Params\RecvRatio,  Type,  0, "dword"
 HKR, Ndi\Params\RecvRatio,  Default, 0, "1"
 HKR, Ndi\Params\RecvRatio,  Optional, 0, "0"
 HKR, Ndi\Params\RecvRatio,  Min,  0, "1"
 HKR, Ndi\Params\RecvRatio,  Max,  0, "10"
 
-HKR, Ndi\Params\PayloadMtu,  ParamDesc, 0, "Payload Mtu size"
+HKR, Ndi\Params\PayloadMtu,  ParamDesc, 0, %MTU_STR%
 HKR, Ndi\Params\PayloadMtu,  Type,  0, "dword"
 HKR, Ndi\Params\PayloadMtu,  Default, 0, "2044"
 HKR, Ndi\Params\PayloadMtu,  Min,  0, "60"
 HKR, Ndi\Params\PayloadMtu,  Max,  0, "4092"
 
 
-HKR, Ndi\Params\MCLeaveRescan,  ParamDesc, 0, "MC leave rescan (sec)"
+HKR, Ndi\Params\MCLeaveRescan,  ParamDesc, 0, %MC_RESCAN_STR%
 HKR, Ndi\Params\MCLeaveRescan,  Type,  0, "dword"
 HKR, Ndi\Params\MCLeaveRescan,  Default, 0, "260"
 HKR, Ndi\Params\MCLeaveRescan,  Optional, 0, "0"
@@ -152,14 +152,14 @@
 HKR, Ndi\Params\MCLeaveRescan,  Max,  0, "3600"
 
 
-HKR, Ndi\Params\guid_mask,  ParamDesc, 0, "GUID bitwise mask"
+HKR, Ndi\Params\guid_mask,  ParamDesc, 0, %GUID_MASK_STR%
 HKR, Ndi\Params\guid_mask,  Type,  0, "dword"
 HKR, Ndi\Params\guid_mask,  Default, 0, "0"
 HKR, Ndi\Params\guid_mask,  Optional, 0, "0"
 HKR, Ndi\Params\guid_mask,  Min,  0, "0"
 HKR, Ndi\Params\guid_mask,  Max,  0, "252"
 
-HKR, Ndi\Params\BCJoinRetry,  ParamDesc, 0, "Number of retries
connecting to bc"
+HKR, Ndi\Params\BCJoinRetry,  ParamDesc, 0, %BC_JOIN_RETRY_STR%
 HKR, Ndi\Params\BCJoinRetry,  Type,  0, "dword"
 HKR, Ndi\Params\BCJoinRetry,  Default, 0, "50"
 HKR, Ndi\Params\BCJoinRetry,  Optional, 0, "0"
@@ -253,3 +253,22 @@
 DIRID_SYSTEM_X86     = 16425
 REG_DWORD            = 0x00010001
 REG_DWORD_NO_CLOBBER = 0x00010003
+
+RQ_DEPTH_STR  = "Receive Queue depth"
+RQ_WATERMARK_STR = "Receive Queue Low Watermark"
+SQ_DEPTH_STR  = "Send Queue Depth"
+SQ_CSUM_STR  = "Send Checksum Offload"
+RQ_CSUM_STR  = "Recv Checksum Offload"
+LSO_STR   = "Large Send Offload"
+SA_QUERY_TO_STR  = "SA Query Timeout (ms)"
+SA_QUERY_RETRY_STR = "SA Query Retry Count"
+RECV_RATIO_STR  = "Receive Pool Ratio"
+MTU_STR   = "Payload Mtu size"
+MC_RESCAN_STR  = "MC leave rescan (sec)"
+GUID_MASK_STR  = "GUID bitwise mask"
+BC_JOIN_RETRY_STR   = "Number of retries connecting to bc"
+
+ENABLED_IF_STR  = "Enabled (if supported by HW)"
+ENABLED_STR  = "Enabled"
+DISABLED_STR  = "Disabled"
+BYPASS_STR  = "Bypass"
\ No newline at end of file

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openfabrics.org/pipermail/ofw/attachments/20081012/08c96ac0/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ipoib_locolized.patch
Type: application/octet-stream
Size: 6466 bytes
Desc: ipoib_locolized.patch
URL: <http://lists.openfabrics.org/pipermail/ofw/attachments/20081012/08c96ac0/attachment.obj>


More information about the ofw mailing list