Skip to content

Commit

Permalink
[S390] zcrypt: adjust speed rating of cex3 adapters
Browse files Browse the repository at this point in the history
Cex3 needs a lower speed rating. Otherwise cex2 adapters will be
prefered.

Signed-off-by: Felix Beck <felix.beck@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
  • Loading branch information
Felix Beck authored and Martin Schwidefsky committed Dec 7, 2009
1 parent 18278df commit 7a6f5cd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion drivers/s390/crypto/zcrypt_cex2a.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
#define CEX3A_MAX_MOD_SIZE CEX2A_MAX_MOD_SIZE

#define CEX2A_SPEED_RATING 970
#define CEX3A_SPEED_RATING 1100
#define CEX3A_SPEED_RATING 900 /* Fixme: Needs finetuning */

#define CEX2A_MAX_MESSAGE_SIZE 0x390 /* sizeof(struct type50_crb2_msg) */
#define CEX2A_MAX_RESPONSE_SIZE 0x110 /* max outputdatalength + type80_hdr */
Expand Down
2 changes: 1 addition & 1 deletion drivers/s390/crypto/zcrypt_pcixcc.c
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
#define PCIXCC_MCL2_SPEED_RATING 7870
#define PCIXCC_MCL3_SPEED_RATING 7870
#define CEX2C_SPEED_RATING 7000
#define CEX3C_SPEED_RATING 10000 /* FIXME: needs finetuning */
#define CEX3C_SPEED_RATING 6500 /* FIXME: needs finetuning */

#define PCIXCC_MAX_ICA_MESSAGE_SIZE 0x77c /* max size type6 v2 crt message */
#define PCIXCC_MAX_ICA_RESPONSE_SIZE 0x77c /* max size type86 v2 reply */
Expand Down

0 comments on commit 7a6f5cd

Please sign in to comment.