Dear list,
I have a 82572 (driver e1000e) and a 82576 (driver igb) in hand. The
following code was added in *_configure_rx to turn RSS on.

======================================
               static const u8 rsshash[40] = {
                       0x6d, 0x5a, 0x56, 0xda, 0x25, 0x5b, 0x0e, 0xc2,
                       0x41, 0x67, 0x25, 0x3d, 0x43, 0xa3, 0x8f, 0xb0,
                       0xd0, 0xca, 0x2b, 0xcb, 0xae, 0x7b, 0x30, 0xb4,
                       0x77, 0xcb, 0x2d, 0xa3, 0x80, 0x30, 0xf2, 0x0c,
                       0x6a, 0x42, 0xb7, 0x3b, 0xbe, 0xac, 0x01, 0xfa };
               u32 mrqc;
               u32 j;

               mrqc = 0x00000002;

               /* Fill out hash function seeds */
               for (j = 0; j < 10; j++) {
                       u32 rsskey = rsshash[(j * 4)];
                       rsskey |= rsshash[(j * 4) + 1] << 8;
                       rsskey |= rsshash[(j * 4) + 2] << 16;
                       rsskey |= rsshash[(j * 4) + 3] << 24;
                       E1000_WRITE_REG_ARRAY(hw, E1000_RSSRK(0), j, rsskey);
               }

               mrqc |= (E1000_MRQC_RSS_FIELD_IPV4 |
                        E1000_MRQC_RSS_FIELD_IPV4_TCP);

               E1000_WRITE_REG(hw, E1000_MRQC, mrqc);

               rxcsum = E1000_READ_REG(hw, E1000_RXCSUM);
               rxcsum |= E1000_RXCSUM_PCSD;
               E1000_WRITE_REG(hw, E1000_RXCSUM, rxcsum);
========================================

According to the manual, developers can get a Dword result of RSS hash
function to verify it. However, I did't get the right data. It seems there
is some misunderstanding. My question is how can I get this Dword result
correctly?

Thanks in advance.
--Junchang
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
E1000-devel mailing list
E1000-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/e1000-devel

Reply via email to