• Alex Elder's avatar
    net: ipa: fix table alignment requirement · e5d4e96b
    Alex Elder authored
    We currently have a build-time check to ensure that the minimum DMA
    allocation alignment satisfies the constraint that IPA filter and
    route tables must point to rules that are 128-byte aligned.
    
    But what's really important is that the actual allocated DMA memory
    has that alignment, even if the minimum is smaller than that.
    
    Remove the BUILD_BUG_ON() call checking against minimim DMA alignment
    and instead verify at rutime that the allocated memory is properly
    aligned.
    Signed-off-by: default avatarAlex Elder <elder@linaro.org>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    e5d4e96b
ipa_table.c 20.8 KB