aboutsummaryrefslogtreecommitdiff
path: root/drivers/net/fs_enet
diff options
context:
space:
mode:
authorRusty Russell <rusty@rustcorp.com.au>2008-12-30 09:26:05 -0600
committerRusty Russell <rusty@rustcorp.com.au>2008-12-30 09:26:05 +1030
commit0864b79a153342c1dfbebb12b2d099fec76c5e18 (patch)
tree8e6fa6ada6701ceeadbee5f96c78cdd59048688d /drivers/net/fs_enet
parent4b7f7e2049956f6e946ad56c1ee093e7bab74da9 (diff)
virtio: block: dynamic maximum segments
Enhance the driver to handle whatever maximum segment number the host tells us to handle. Do to this, we need to allocate the scatterlist dynamically. We set max_phys_segments and max_hw_segments to the same value (1 if the host doesn't tell us, since that's safest and all known hosts do tell us). Note that kmalloc'ing the structure for large sg_elems might be problematic: the fix for this is sg_table, but that requires more work. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'drivers/net/fs_enet')
0 files changed, 0 insertions, 0 deletions